How to create a deployment dependency for wmq.jmsra.rar (Websphere MQ Client) in domain mode ?
Issue
-
We have an web application and we are using the JBoss / Websphere MQ method as illustrated in the following this article.
-
In this method you need to do the following:
- Create a connection factory and administrative objects using the resource-adapter section.
- Setup the jboss-web.xml with references to the JNDI names of the objects and connection factory.
-
In the article the example is done in standalone environment and the application dependency is created by placing the
wmq.jmsra.rarin the /deploy directory of the application. In our case we are working in domain environment and we do as follows :- deploy the application using cli.
- deploy the
wmq.jmsra.rarusing cli. - setup the
jboss-web.xml - setup the
jboss-deployment-structure.xmlto try and create a dependency to the rar.
-
To create a dependency to an application using
jboss-deployment-structure.xmlis this done correctly.
===========================================================
jboss-deployment-structure.xml
===========================================================
<?xml version="1.0" encoding="UTF-8"?>
<jboss-deployment-structure>
<sub-deployment name="someWar-1.0.war">
<dependencies>
<module name="wmq.jmsra.rar" ></module>
</dependencies>
</sub-deployment>
</jboss-deployment-structure>
- Can we load the
wmq.jmsra.raras a module and then use thejboss-deployment-structure.xml. We have read this will not work due to some exl files packed with the rar ? - Can we explode the rar and then build the module and then use the
jboss-deployment-structure.xml? -
Can we explode the rar and pack the *.jars in the /WEB-INF/lib directory.
-
The application fails to deploy when a attempt to set the wmq.jmsra.rar as a dependency.
java.lang.NoClassDefFoundError: com/ibm/mq/MQException
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
