[jboss-dev-forums] [JBoss AS7 Development] - AS7 subsystem integration notes
Alessio Soldano
do-not-reply at jboss.com
Fri Jan 14 04:10:01 EST 2011
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&containerType=14&container=2225]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20110114/366e4ba9/attachment.html
More information about the jboss-dev-forums
mailing list