简体   繁体   中英

IBM MQ JMS Message Listener

I want to use javax.jms.QueueConnectionFactory to connect to IBM MQ Is it possible to specify the queue manager and channel manager while connecting ?

I want to avoid using com.ibm.mq.jms.MQQueueConnectionFactory. I am using JBoss 4.3

You need to generate a .bindings file and use com.sun.jndi.fscontext.RefFSContextFactory for getting initialcontext and then go on normally like any jms queue ...

Check this link http://ibswings.blogspot.com/2008/02/integrating-mq-broker-6-with-bea.html

to see how to generate .bindings file using JMSAdmin.

slight change to the process described in the link, if mq is hosted on different machine:

InitCtx> def qcf(com.bt.mq.QueueConnectionFactory) qmgr(queuemanager) host(ip) port(port) transport(client)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM