Posted: Sun Jun 07, 2009 3:45 am Post subject: MQ cluster load balancer question
Apprentice
Joined: 14 Dec 2007 Posts: 48 Location: anywhere
Hi,
I have MB flow that put messages to a local queue and expect reply from another local queue.
The queue manager was clustered with another queue manager and both queue were announced as shared.
So I have for example QM1 and QM2 each has two local queues shared in the same cluster. the clwluseq is set to any for QM1 and QM2 and DEFBIND(NOTFIXED) for the local queues.
My question is: When the flow puts a message it might go either to the local queue on QM1 or QM2 as round robin. But the reply message can't be read the same way. I need to get the message from the same queue manager that got the input message. Appreciate your help.
Posted: Sun Jun 07, 2009 4:45 am Post subject: Re: MQ cluster load balancer question
Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
mgm wrote:
I need to get the message from the same queue manager that got the input message. Appreciate your help.
If whatever's generating the reply message is using the Reply values in the MQMD (as it should if it's following best practice, and you've followed best practice by setting the message type to Request) then the reply message will go wherever the request message says it should. By default this is the queue manager where the request was sent from.
Read the WMQ documentation for an explaination of this; don't be confused by the fact it's a WMB flow putting the message. In this context, WMB is just an application putting a message and the normal WMQ rules apply. _________________ Honesty is the best policy.
Insanity is the best defence.
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