Friday, August 19, 2011

jboss classloading

<classloading xmlns="urn:jboss:classloading:1.0"
name="<war-name>"
domain="<domain-name>"
export-all="NON_EMPTY"
import-all="true">
</classloading>

Put the above snippet in a file called jboss-classloading.xml within your WEB-INF directory and jboss will use your WARs jars instead of it's own when classloading for your application. Of course, be sure to substitute with your applications war file name and with whatever domain you decide to use. You can use any domain, but any two applications on the server sharing a domain name will both have access to eachother's classes.


Note: This was used with JBOSS 5.1.0 EAP. I believe it works with most new versions of jboss though.

No comments:

Post a Comment