Installing IBM MQ client library JARs into an OSGI bundle - 8.0

Talend ESB Service Developer Guide

Version
8.0
Language
English
Product
Talend Data Fabric
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Open Studio for ESB
Talend Real-Time Big Data Platform
Module
Talend ESB
Talend Runtime
Content
Design and Development
Installation and Upgrade
Last publication date
2023-11-06

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.