Friday, 18 January 2013

WebsphereMQ binding with Tibco BW



By following the below steps you can able to establish the connection between  WebsphereMQ and  TibcoBW

Step1 :
 Copy MQ jars to BW classpath. (You'll get this JAR files from IBM MQ server/Java/lib location.)
             com.ibm.mq.jar
             com.ibm.mq.jmqi.jar
             com.ibm.mq.soap.jar
             com.ibm.mqjms.jar
             connector.jar
             dhbcore.jar
             fscontext.jar
             providerutil.jar 

-----> Copy the above jar files in to the following location of BW.
           C:\tibco\tra\5.7\lib 

Step2:

Edit the BW configuration.  tibco.env.CUSTOM_CP_EXT.

a)            Edit "C:\tibco\bw\5.10\bin\bwengine.tra". So that "tibco.env.CUSTOM_EXT_APPEND_CP"  includes "C:/IBM/MQ/Java/lib" (MQ JAR file location, it may be different on your machine.)

b)               Edit "C:\tibco\designer\5.7\bin\designer.tra". So that "tibco.env.CUSTOM_CP_EXT" includes "C:/IBM/MQ/Java/lib" (MQ JAR file location, it may be different on your machine.)

Step3:

.Bindings File: By using this file you can quickly add/remove/change Queue information in .bindings file and It consists of Connection factory JNDI settings.

 You Need to ask IBM MQ admin to provide Binding files (there are 2 types of Binding files depends on where TIBCO exists, Client biding file which has IP address of MQ server, Second is file Binding file, where Tibco&MQ on same box)

===> Creating File-Based JNDI Bindings for MQ Server :-
The following instructions demonstrate how to create file-based JDNI bindings for the MQ Server after creating the required queue manager, queues, server channel and cluster.



 


 Right click on JMS Administered Objects and select Add Initial Context. then the below window will appear . select the directory where you want to save .bindings file.then click on Next and Finish.



As shown in the first figure Expand the file then Destinations and Connection factories will appear.
Right click on Destinations to add new destination to that .bindings file.
Right click on Connection factory to create a new connection Factory. 

Once check whether the .bindings file is created or not.

Step4:  Create MQ JMS connection in your Tibco BW as shown below.








 Test the connection and Have fun!!!!!!

2 comments:

  1. Quick comment: copying jar files from the IBM MQ product library can cause some serious issues related to versioning. The copy basically disconnects you from any future updated to the MQ product.
    Better to install the official IBM MQ Client and refer to the jars from there.
    Cheers ... Ruud

    ReplyDelete
  2. I would like to thank you for the efforts you have made in writing this article. I am sharing additional information regarding Biztalk online Training .

    ReplyDelete