-
1. Re: Strange Classloading in JBoss 7.1.1.Final
jaysensharma Aug 17, 2012 4:36 PM (in response to suikast42)For EAR files you need to inject the module dependency at the "sub-deployment" level as following:
<jboss-deployment-structure> <ear-subdeployments-isolated>false</ear-subdeployments-isolated> <deployment> <dependencies> <module name="my.company.module" /> </dependencies> </deployment> <sub-deployment name="Test-Web.war"> <dependencies> <module name="my.company.module" /> </dependencies> </sub-deployment> <sub-deployment name="Test-ejb.jar"> <dependencies> <module name="my.company.module" /> </dependencies> </sub-deployment> </jboss-deployment-structure>
-
2. Re: Strange Classloading in JBoss 7.1.1.Final
suikast42 Aug 18, 2012 7:29 PM (in response to jaysensharma)Is for this approach
<ear-subdeployments-isolated>false</ear-subdeployments-isolated> mandatory ??
If yes I muss declare my module as global. Beacause of JMS I can't use isolated classloading.
-
3. Re: Strange Classloading in JBoss 7.1.1.Final
jaysensharma Aug 19, 2012 2:19 AM (in response to suikast42)Hi,
<ear-subdeployments-isolated>false</ear-subdeployments-isolated>
By default the "EAR/lib" directory is a single module, and every WAR or EJB jar deployment is also a separate module. Sub deployments (wars and ejb-jars) always
have a dependency on the parent module, which gives them access to classes in EAR/lib, however they do not always have an automatic dependency on each other.
This behaviour is controlled via the ear-subdeployments-isolated setting in the ee subsystem configuration:
<subsystem xmlns="urn:jboss:domain:ee:1.0" >
<ear-subdeployments-isolated>false</ear-subdeployments-isolated>
</subsystem>
Or you can set it in "jboss-deployment-structure.xml" as
<jboss-deployment-structure>
<ear-subdeployments-isolated>false</ear-subdeployments-isolated>.
.
<jboss-deployment-structure>
You can set it to true if you want the modules present inside your EAR should have see each other's classes/
-
4. Re: Strange Classloading in JBoss 7.1.1.Final
suikast42 Aug 25, 2012 4:33 PM (in response to jaysensharma)Ok,
then İ misunderstood the
<ear-subdeployments-isolated>false</ear-subdeployments-isolated>
section.I think the easiest way for me is define my jboss module in standalone.xml as a global module.
Thanks
-
5. Re: Strange Classloading in JBoss 7.1.1.Final
chandrup Nov 22, 2012 12:26 PM (in response to jaysensharma)<jboss-deployment-structure> <ear-subdeployments-isolated>false</ear-subdeployments-isolated> <deployment> <dependencies> <module name="my.company.module" /> </dependencies> </deployment> <sub-deployment name="Test-Web.war"> <dependencies> <module name="my.company.module" /> </dependencies> </sub-deployment> <sub-deployment name="Test-ejb.jar"> <dependencies> <module name="my.company.module" /> </dependencies> </sub-deployment> </jboss-deployment-structure>
In the above section, what is the significance of <module> tag and on what basis we give name to a module