Posted: Wed Oct 08, 2003 1:42 am Post subject: JMS/JNDI setup with MQSeries
Acolyte
Joined: 08 Oct 2003 Posts: 73
I am using MQ 5.3 and want to use JMS with MQ.
I have got a MQ running on a UNIX box and a WAS 5.0 Server.
I want to use JMS with MQ but I don't know how to setup the environment. What should I set in the MQ Server and WAS Server? If I want to use JNDI, what things and where should I do the setup?
Hi
You would have to run JMSAdmin to setup your mappings in the jndi.You can create a script (just plain test file) , lets call it qsetup.p2p and in that script you could have the following
def ctx(jms)
chg ctx(jms)
#Define a QueueConnectionFactory
def wsqcf(QueueManager) qmgr(QM)
#Here QueueManager is the queuemanager logical name and then QM is #the actual queue manager in MQ Series
# Define Queues
def q(queue1) queue(Q1) qmgr(QM)
#Here queue1 is the logical queue name and then Q is the actual queue #in MQ Series
# Display the current context
dis ctx
end
Then , you can run JMSAdmin on the command line as follows
JMSAdmin < qsetup.p2p
Your server has be running in order for you to do this.Assuming all goes well , you can do a "dumpNamespace" to see the mappings in the jndi namespace
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum