Skip to main content

Installing IBM MQ client library JARs into an OSGI bundle

This section describes how to install IBM WMQ client library JARs into an OSGi bundle environment that can be used to create client connections to WMQ.

Prerequisites:

The following WMQ JARs (version 9.x) should be available on your local host. The JARs can be found in the <IMB_MQ_HOME>/java/lib directory.

  • com.ibm.mq.allclient.jar

  • com.ibm.mq.osgi.java_9.1.0.0.jar

To install the JAR files into your local repository, it is recommended to copy the com.ibm.mq.allclient.jar into the <TESB-HOME>/container/lib/ext folder, and then update the org.osgi.framework.system.packages.extra property in the <TESB-HOME>/container/etc/custom.properties file:

org.osgi.framework.system.packages.extra = \
   ......
   com.ibm.mq;version=9.1.0, \
   com.ibm.mq.constants;version=9.1.0, \
   com.ibm.mq.exits;version=9.1.0, \
   com.ibm.mq.headers;version=9.1.0, \
   com.ibm.mq.headers.pcf;version=9.1.0, \
   com.ibm.mq.headers.internal;version=9.1.0, \
   com.ibm.mq.headers.internal.store;version=9.1.0, \
   com.ibm.mq.headers.internal.validator;version=9.1.0, \
   com.ibm.mq.jmqi;version=9.1.0, \
   com.ibm.mq.jms;version=9.1.0, \
   com.ibm.mq.pcf;version=9.1.0 

Alternatively, you can copy the com.ibm.mq.osgi.java_9.1.0.0.jar into the <TESB-HOME>/container/deploy folder.

Note that if the IMB MQ server 9.x is installed on the same host with the Talend Runtime Container, you may have to remove the com.ibm.* jars from System ClASSPATH env in case you encounter problems when connecting to IBM MQ.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!