Alessio Soldano [
http://community.jboss.org/people/alessio.soldano%40jboss.com] modified
the document:
"AS7 subsystem integration notes"
To view the document, visit:
http://community.jboss.org/docs/DOC-16341
--------------------------------------------------------------
This page aims at collecting misc tips, idea, etc. that are likely to be useful when
adding a new subsystem integration on AS 7, even if only to save some time debugging and
looking for the reason of issues; feel free to contribute also adding new categories
below.
h2. Modules and classloading
h3. Service API
The services attribute of the module element allows for enabling import of
META-INF/services/... declarations in dependency modules. That's useful for instance
when doing something like
classLoader.getResourceAsStream("META-INF/service/foo") and expecting all the
META-INF/services/.. declarations in the modules contributing to defining the classloader
to be considered, not only those in the main module the classloader comes from.
e.g.
<module xmlns="urn:jboss:module:1.0"
name="org.jboss.as.webservices">
<resources>
<!-- Insert resources here -->
</resources>
<dependencies>
...
<module name="org.jboss.ws.common" />
<module name="org.jboss.ws.cxf.jbossws-cxf-factories"
services="import"/>
...
</dependencies>
</module>
--------------------------------------------------------------
Comment by going to Community
[
http://community.jboss.org/docs/DOC-16341]
Create a new document in JBoss AS7 Development at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=102&am...]