-
1. Re: Class sharing between rar and ear
lafr Jan 29, 2013 11:37 AM (in response to weberj)1 of 1 people found this helpfulThis is probably one of the most frequently asked questions.
Seems ypu overlooked something while reading the classloading topic.
Different ways available, like jboss-deploymentstructure.xml.
The easiest way for me was to add a manifest entry to the ear file:
<attribute name="Dependencies" value="deployment.controller.rar, deployment.filesystem.rar"/>
With this, the ear file can use classes from the deployments named controller.rar and filesystem.rar.
Only those rar-files contain the shared class files, the ear file does not.
-
2. Re: Class sharing between rar and ear
weberj Jan 30, 2013 5:00 AM (in response to lafr)Thanks, I got it to work with my.ear/META-INF/jboss-deployment-structure.xml
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2">
<deployment>
<dependencies>
<module name="deployment.my.rar" export="true"/>
</dependencies>
</deployment>
</jboss-deployment-structure>
export="true" is important, else there are NoClassDefFoundError for the RA classes, I guess the ear classes don't see javax.resource.*