ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Message Affinity -routing message to correct QMgr

Post new topic  Reply to topic
 Message Affinity -routing message to correct QMgr « View previous topic :: View next topic » 
Author Message
smeunier
PostPosted: Tue Feb 13, 2007 7:49 am    Post subject: Message Affinity -routing message to correct QMgr Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Tue Feb 13, 2007 7:54 am    Post subject: Reply with quote

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
View user's profile Send private message
smeunier
PostPosted: Tue Feb 13, 2007 8:44 am    Post subject: Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Tue Feb 13, 2007 8:50 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

http://www.mqseries.net/phpBB2/viewtopic.php?t=34979
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Message Affinity -routing message to correct QMgr
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.