This project assembles a JBoss AS7 module containing the jars required to commuicated with JBoss Messaging running on a JBoss 5.0.0.GA server.
mvn install
unzip target/jboss-messaging-client-AS5.0.0.GA-module.zip -d $AS7_HOME/modules
The client deployment (EAR, EJB, WAR) will be required to declare a dependency to this module so that it has access to the correct versions of the jars. This can be done by specifying MANIFEST headers or by providing a jboss-deployment-structure.xml in the META-INF directory.
Example of jboss-deployment-strucuture.xml:
<jboss-deployment-structure>
<deployment>
<exclusions>
<module name="javax.jms.api"/>
</exclusions>
<dependencies>
<module name="org.jboss.as5.messaging.client"/>
</dependencies>
</deployment>
</jboss-deployment-structure>
Above we are declaring an explicit exclusion for javax_jms_api which is otherwise an implicit dependency.
And the explicit dependency is for the module that this project produces.