Posted: Sat Jan 11, 2003 12:10 am Post subject: Reading from a remote Queue
Novice
Joined: 15 Dec 2002 Posts: 23 Location: India
Hello
is it possible to read mesages from a remote queue using remote queue definition ? other wise, how can i read message from a remote queue ?
can i give the queue manager and host name of the remote queue directly ?
my constraint in doing this is that i want to set transport type as MQJMS_TP_BINDINGS_MQ.
so can anyone help me as to how can i accomplish this ?
Thanks
Joe
Posted: Sun Jan 12, 2003 4:35 pm Post subject: You can't read remotely using bindings
Apprentice
Joined: 18 Dec 2001 Posts: 43
You can't read the message of a remote queue in bindings mode. You have to either establish a client connection to the remote queue manager or transport the message from the remote queue manager to a new local one.
Basically bindings mode allows your app to communicate to a queue manager directly throught the CPU/memory. Client mode goes across a network protocol (TCP).
Why do you have a requirement to use bindings? Are you trying to do some kind of 2PC or XA coordination? If it is just for performance reasons, there is a good chance that you will never see a difference if you just switched to TCP/IP.
Your program would then use this QCF which would use an MQ client connection to connect to my.qmgr. You would then be running local to the queue manager and could get from the queue.
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