The following tutorial shows how you can configure deployment dependencies between different EAR files with JBoss EAP 6 and WildFly 8 application server.
The jboss-all.xml file can be used if you have multiple Enterprise applications which are required to be started up (and shut down) in a certain order. The jboss-all.xml file needs to be placed in the META-INF folder of your EAR archives.
Here’s for example how to specify that the app1.ear application has a dependency (and needs therefore to be started after) over two other EAR archives named base.ear and app2.ear:
<jboss umlns="urn:jboss:1.0"> <jboss-deployment-dependencies xmlns="urn:jboss:deployment-dependencies:1.0"> <dependency name="base.ear" /> <dependency name="app2.ear" /> </jboss-deployment-dependencies> </jboss>