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
[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 |