Answer the question
In order to leave comments, you need to log in
JBoss/Wildfly restarting dependent EARs?
Good afternoon.
Tell me how to force the dependent EAR to restart correctly when the main one is restarted (redeploy)?
For example:
There are 2 EAR modules:
module1.ear
|
+--META-INF
| |
| +--jboss-deployment-structure.xml
|
+--ejb.jar
|
+--persistence.xml with persistence unit "module1-pu"
module2.ear
|
+--META-INF
| |
| +--jboss-deployment-structure.xml
|
+--ejb.jar
|
+--persistence.xml with persistence unit "module2-pu"
<?xml version="1.0" encoding="UTF-8"?>
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2">
<ear-subdeployments-isolated>false</ear-subdeployments-isolated>
<deployment>
<module-alias name="deployment.module1"/>
</deployment>
</jboss-deployment-structure>
<?xml version="1.0" encoding="UTF-8"?>
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2">
<ear-subdeployments-isolated>false</ear-subdeployments-isolated>
<deployment>
<module-alias name="deployment.module2"/>
<dependencies>
<module name="deployment.module1.ear" export="true">
</module>
</dependencies>
</deployment>
</jboss-deployment-structure>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question