开发者

IBM MQ JMS Message Listener

开发者 https://www.devze.com 2022-12-21 14:45 出处:网络
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 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)

0

精彩评论

暂无评论...
验证码 换一张
取 消