Configuring JMS between BW and MQ#This is previously published, adding a file. Please publish again.

Configuring JMS between BW and MQ#This is previously published, adding a file. Please publish again.

book

Article ID: KB0088855

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks -
Not Applicable -

Description

Resolution:
Description:
==========
Configuring JMS between BW and MQ

Environment:
==========
ALL


Resolution:
==========
Steps for configuring JMS between BW and MQ are as follows:

On Server side:

1). Install IBM WebSphere MQ on the Server. In addition to this step, the following should be noted:


a). Create a Queue Manager. Right click and go to "properties" of the queue manager just created. Remember the CCSID for later use.


b). Create a Server-Connection Channel. Commit MCA USER ID to current login user (this user must have MQ authorization).

2). Make sure that the DLL files under "<installDir>\bin" and "<theinstallDir>\java\lib" is in the system PATH. Also check that the jars from this location "<installDir>\java\lib" are included in the CLASSPATH.  (Note: In tests, MQ installer added these automatically).

3). Newly created MQSeries queue are still not ready for use by the JMS API. They need to be exposed and this is done via the JMSAdmin tool. JMS administered objects need to be created using JMSAdmin tool.

4). Go to the <installDir>\Java\bin dir. Edit the JMSAdmin.config file to use file based JNDI interface as this is the easiest.

   INITIAL_CONTEXT_FACTORY=com.sun.jndi.fscontext.RefFSContextFactory
   PROVIDER_URL=file:/C:/IBM/WebSphereMQ/Java/bin

5). Start JMSAdmin tool and the prompt.

5a). Create a JMS queue. Example:

-DEFINE QCF(MQ_JMS_MANAGER) QMANAGER(QM2) TRANSPORT(CLIENT) HOSTNAME(192.168.66.207) PORT(1414) CCSID(1381)
-DEFINE Q(JNDImyQueue) QUEUE(myQueue) QMANAGER(QM2)

Where HOSTNAME is the server host.

5b). Here 'JNDImyQueue' is the JNDI name which is linked to the actual MQSeries queue 'myQueue' which is defined using MQ Explorer. Once this is done, you will see a file called ".bindings" created under PROVIDER_URL .

On the Client machine:


1). Copy the ".bindings" file and MQ Java lib folder (from Server side) to the Client machine.

2). Include MQ Java lib in deisgner.tra classpath. Example. In designer.tra are the following settings: C:/MQ/Java/lib added to tibco.env.CUSTOM_CP_EXT

3). In Designer project for JMS Connection, these are the settings:

JNDI Context Factory: com.sun.jndi.fscontext.RefFSContextFactory
JNDI Context URL: file:/C:/ JNDI-Directory (I put the .binding file in this folder)
MQ_JMS_MANAGER is my QueueConnectionFactory name.
Please validated with a successful connection.

If you want to configure one-way or two-way SSL over BW and MQ, follow the instructions in the attached document. The doc name is Connecting_to_MQ_Server_6_0_from_TIBCO_12.zip.


Attachments:
==========
Filename: Connecting_to_MQ_Server_6_0_from_TIBCO_12.zip from SR 1-CUXXEA.


References:
==========
1-CUXXEA

Issue/Introduction

Configuring JMS between BW and MQ#This is previously published, adding a file. Please publish again.

Attachments

Configuring JMS between BW and MQ#This is previously published, adding a file. Please publish again. get_app