JBoss application server tutorials

  • Full Screen
  • Wide Screen
  • Narrow Screen
  • Increase font size
  • Default font size
  • Decrease font size

Solving EAR deployment dependencies in JBoss AS 7

 

This short tutorial show how you can support inter deployment dependencies on JBoss AS 7.

  Note this feature is avalable since JBoss AS 7.2.0 Alpha1

If you have a deployment scenario like this, where you have multiple Enterprise applications which are required to be started up (and shut down) in a certain order:

jboss 7 ear dependencies

Then you can specify the deployment dependency using the jboss-all.xml file which is a JBoss custom XML descriptor for EAR archives. The jboss-all.xml file needs to be placed in the META-INF folder of your EAR archive.

Here's for example how to solve the above dependency between the three EAR files:

app1.ear/MEAT-INF/jboss-all.xml

<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>

app2.ear/MEAT-INF/jboss-all.xml

<jboss umlns="urn:jboss:1.0">
    <jboss-deployment-dependencies xmlns="urn:jboss:deployment-dependencies:1.0">
        <dependency name="base.ear" />
    </jboss-deployment-dependencies>
</jboss>

References: https://issues.jboss.org/browse/AS7-5410?actionOrder=desc<
Advertisement

Solving EAR deployment dependencies in JBoss AS 7
Francesco Google+
Top Programming Sites
You are here JBoss AS Deployment Solving EAR deployment dependencies in JBoss AS 7