Jboss AS 7 ์์ module.xml ์ค์ ์ ์ํ ๊ฐ๋ตํ ์ค๋ช ์ ์ ์ด๋์ ์ข์ ์๋ฃ๋ฅผ ์ฐพ์์ ํฌ์คํ ํด๋ด ๋๋ค.
์๋ฌธ์ด๊ธดํ์ง๋ง ์ด๋ ค์ด ๋ง์ ์์ผ๋ ํ๋ฒ ์ฝ์ด๋ณด์๊ธธ ๋ฐ๋๋๋ค ^-^
Full module.xml example with comments
<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.1" name="org.jboss.msc">
<!-- Main class to use when launched as a standalone jar. -->
<main-class name="org.jboss.msc.Version"/>
<!-- Properties readable through Modules API. Not to be confused with Java system properties. -->
<properties>
<!-- jboss.api=private means that the module is not part of the
JBoss AS 7 public API - basically saying, "Don't use it's packages in
your apps." -->
<property name="jboss.api" value="private"/>
</properties>
<resources>
<!-- Basically, list of jars to load classes and resources from. -->
<resource-root path="jboss-msc-1.0.1.GA.jar"/>
...
</resources>
<dependencies>
<!-- Export paths and packages from the class loader which loaded
JBoss Modules (usually the system's application CL). -->
<system export="true">
<!-- List of exported paths. Mandatory. -->
<paths>
<path name="org/jboss/modules"/>
<path name="org/jboss/modules/log"/>
</paths>
<!-- Optional limitation of what's exported. -->
<exports>
<include path="META-INF/"/>
</exports>
</system>
<!-- Dependencies on other modules. Classloader of this module will have their classes visible. -->
<module name="javax.api"/>
<module name="org.jboss.logging"/>
<!-- services="import/export/none" controls whether services defined
in META-INF/services are also visible to/from this module.
I.e. services="export" will make the services of this module visible to
the dependency. Import will do the other way around.
Defaults to "none". -->
<!-- export="true" controls whether own exports of this dependency are visible. -->
<module name="org.jboss.ws.native.jbossws-native-core" services="export" export="true">
<!-- You can limit what packages in dependency modules are allowed
to be seen from this module's point of view (import), or vice versa (export).
By default, all are imported/exported. When you specify <imports>
or <exports>, only those listed are. -->
<imports>
<include path="META-INF"/>
<include path="dtd"/>
<include path="schema"/>
<exclude-set>
<path name="org.jboss.example.tests"/>
</exclude-set>
</imports>
<exports>
<include path="META-INF"/>
<include path="dtd"/>
<include path="schema"/>
</exports>
</module>
<!-- Optional deps -->
<module name="javax.inject.api" optional="true"/>
</dependencies>
</module>
- See more at: https://developer.jboss.org/people/ozizka/blog/2012/11/12/about-modulexml-in-jboss-as-7#sthash.oZ0bLEzI.dpuf
์ถ์ฒ : https://developer.jboss.org/people/ozizka/blog/2012/11/12/about-modulexml-in-jboss-as-7
'๐ป Programming > WAS' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[JBoss 7] LogManager ์ค๋ฅ (0) | 2015.06.16 |
---|---|
[Jeus 6] baseport ์์ ๋ฐฉ๋ฒ (0) | 2015.06.11 |
[Jeus 6] ๊ด๋ฆฌ์ ๋น๋ฐ๋ฒํธ๋ฅผ ์์ด๋ฒ๋ ธ์ ๋ (0) | 2015.06.11 |
WebSphere ๋ค์ด๋ก๋ ์ฌ์ดํธ (0) | 2015.06.09 |
์น๋ก์ง 11g ์น์ฑ ๋ฐฐ์น(Deployment) ์ค์นํ๊ธฐ (0) | 2015.06.09 |