|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Message Affinity -routing message to correct QMgr |
« View previous topic :: View next topic » |
Author |
Message
|
smeunier |
Posted: Tue Feb 13, 2007 7:49 am Post subject: Message Affinity -routing message to correct QMgr |
|
|
 Partisan
Joined: 19 Aug 2002 Posts: 305 Location: Green Mountains of Vermont
|
I have a multi clustered QMgr environment. Inbound messages can come from one of 2 Qmgr (QMA or QMB). the reply is to be returned to clustered queue called REPLYQ.
I need to insure the reply is returned to the correct source QMgr's REPLYQ. The ReplyToQMgr and ReplyToQ is maintained through the Message Broker and passed from Source to Target, the ReplyToQmgr and ReplyToQ is copied into the replied MQMD structure, so the Brokers Message Flow can route it properly, by overiding the MQOutput nodes Qmanager property(which is blank).
In the compute node before the MQOutput node, I set.
Code: |
SET OutputLocalEnvironment.Destination.MQ.DestinationData[1].queueManagerName=InputRoot.MQMD.ReplyToQmgr;
SET OutputLocalEnvironment.Destination.MQ.DestinationData[1].queueName=InputRoot.MQMD.ReplyToQ; |
This takes the originating source Qmgr and Q and sets the delivery options when the propagate is issued. Or so I thought.
I intentionally set the ReplyToQMgr to a false Qmgr and expected to see a failure. It was delivered. to the queue as defined, but the QMGR was ignored.
Have I missed something?
For DestinationMode I have it set to QueueName. Does this need to be set to DestinationList with the above? I think perhaps, but I really am just trying to override the QueueManager name(which is blank) with the QueueName option. Is my approach wrong? |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Feb 13, 2007 7:54 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
DestinationMode needs to be DestinationList for the DestinationList to be used.
You need to set both the queue manager name and the queue name.
BUT you should just use an MQReplyNode instead. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
smeunier |
Posted: Tue Feb 13, 2007 8:44 am Post subject: |
|
|
 Partisan
Joined: 19 Aug 2002 Posts: 305 Location: Green Mountains of Vermont
|
Ok, I can buy into the MQReply suggestion, but will have to set the Report options to pass the CorrelID and MsgID, so they do not get altered as the replying application is resolving them. I have not yet found how to use MQ Constants in ESQL such as:
SET OutputRoot.MQMD.Report = MQRO_PASS_MSG_ID | MQRO_PASS_CORREL_ID;
Is there a technique to this, or do I have to use the decimal values directly? I could not find this in the help center. |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Feb 13, 2007 8:50 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|