-
1. Re: Dependency specification across Multiple EARs
sfcoy Dec 15, 2011 4:21 PM (in response to mandarbk)Why do you need two EAR files?
It seems like all your problems would be resolved by using a single EAR.
-
2. Re: Dependency specification across Multiple EARs
mandarbk Dec 16, 2011 2:31 AM (in response to sfcoy)App1.ear is a library.It is used by several other applications.It also exposes other webservices used by thirdparty users.
-
3. Re: Dependency specification across Multiple EARs
mandarbk Dec 16, 2011 1:20 PM (in response to mandarbk)Here is the solution :
<?xml version="1.0" encoding="UTF-8"?>
<jboss-deployment-structure>
<!-- By default, we'll make all artifacts in this ear visible to each other by setting isolation to false -->
<ear-subdeployments-isolated>false</ear-subdeployments-isolated>
<deployment>
<dependencies>
<module name="deployment.App1.ear" export="true"/> <!-- I hope it will get me everything in EAR/lib -->
<module name="deployment.App1.ear.myejb.jar" export="true" />
<module name="deployment.App1.ear.myservicesejb.jar" export="true">
</dependencies>
</deployment>
</jboss-deployment-structure> -
4. Re: Dependency specification across Multiple EARs
hasnainraza3 Mar 21, 2014 3:10 AM (in response to mandarbk)Hi,
I am having similar type of issue, my scenario is :
App1.ear
| _ _ myejb.jar
| _ _ myservicesejb.jarApp2.ear
| _ _ processEngine.jarApp2.ear --> ProcessEngine.jar sends a request and App1.ear --> ejb class consume it, but ejb class cant find the classes from App2.ear --> processEngine.jar
App2.ear demployment structure :
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.0">
<ear-subdeployments-isolated>false</ear-subdeployments-isolated>
<deployment>
<dependencies>
<module name="deployment.App1.ear.ejb.jar" export="true"/>
</dependencies>
</deployment>
</jboss-deployment-structure>
App1.ear demployment structure :
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.0">
<ear-subdeployments-isolated>false</ear-subdeployments-isolated>
<deployment>
<dependencies>
<module name="deployment.App2.ear.vProcessEngine.jar" export="true"/>
</dependencies>
</deployment>
</jboss-deployment-structure>
When deploying both ears i got moduleNotFound exception from App1 ear.