How to Declare a Dependency on a Module in JBoss EAP

EJB JAR/WAR w/ jboss-deployment-structure.xml

<?xml version="1.0" encoding="UTF-8"?>
<jboss-deployment-structure>
  <dependencies>
    <module name="br.eti.fernandoribeiro.sample" slot="1.0" />
    ...
  </dependencies>
</jboss-deployment-structure>

EJB JAR/WAR w/ MANIFEST.MF

Dependencies: br.eti.fernandoribeiro.sample:1.0 ...

EAR w/ jboss-deployment-structure.xml

<?xml version="1.0" encoding="UTF-8"?>
<jboss-deployment-structure>
  <sub-deployment name="sample.jar">
    <dependencies>
      <module name="br.eti.fernandoribeiro.sample" slot="1.0" />
      ...
    </dependencies>
  </sub-deployment>
  <sub-deployment name="sample.war">
    <dependencies>
      <module name="br.eti.fernandoribeiro.sample" slot="1.0" />
      ...
    </dependencies>
  </sub-deployment>
  ...
</jboss-deployment-structure>

You can find more details in chapter 3 of the Development Guide.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s