Create JNDI bindings for WMQ

Uday's Blog

The page describes about how to create jndi bindings files Websphere MQ.

The environment used to describe is as follows:

OS : Windows XP SP3
Websphere MQ: V6.0
Java: 1.6

Once Websphere MQ refered as WMQ from here onwards is installed navigate to the WMQ installation folder from command prompt.
Navigate to <WMQ Install location>bin and execute the following commands

Create a queue manager


Start queue manager


Open mq command line environment


Define a local queue in mq command line

define qlocal(JMS_QUEUE)

Create a configuration file with contents


Navigate to <WMQ Install location>Javabin

Open JMSAdmin tool

 JMSAdmin.bat -v -cfg 

The above command opens JMSAdmin tool environment

Define JMS bindings for Connection factory by executing

define qcf(jms/testJMSQCF) qmgr(JMS_QUEUE_MANAGER)

JNDI name for the Connection factory will be “jms/testJMSQCF”

Define JMS binding for Queue by executing

define q(jms/testJMSQ) qmgr(JMS_QUEUE_MANAGER) queue(JMS_QUEUE)

JNDI name…

View original post 19 more words

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s