-
1. Re: Defining dependency at parent level in EARs
jaikiran Aug 19, 2011 7:20 AM (in response to porobd)You should add it to jboss-deployment-structure.xml in .ear/META-INF.
Dattaram Porob wrote:
I tried adding the dependency at the parent level but it did not work; may be I am doing something wrong.
What's not working? More details please. What does the xml look like?
-
2. Re: Defining dependency at parent level in EARs
porobd Aug 22, 2011 7:03 AM (in response to jaikiran)We already have a deployment xml in the EAR/META-INF and it looks like :
<jboss-deployment-structure>
<ear-subdeployments-isolated>false</ear-subdeployments-isolated>
<deployment></deployment>
<sub-deployment name="comp1.jar">
<dependencies>
<module name="com.test.common" />
</dependencies>
</sub-deployment>
<sub-deployment name="comp2.jar">
<dependencies>
<module name="com.test.common" />
</dependencies>
</sub-deployment>
</jboss-deployment-structure>My question is whether adding dependency "<module name="com.test.common" />" inside "<deployment>" and removing it from the sub-deployment dependencies should make this dependency available to both sub-deployments 'comp1.jar' and 'comp2.jar' ?