|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
will this trick work in correlating fan-in with fan-out? |
« View previous topic :: View next topic » |
Author |
Message
|
pcelari |
Posted: Fri Oct 30, 2009 8:38 am Post subject: will this trick work in correlating fan-in with fan-out? |
|
|
Chevalier
Joined: 31 Mar 2006 Posts: 411 Location: New York
|
Hello,
in the aggregation example, a MQMD.MsgId is saved in MQRFH2.usr.MQMD.msgId, and then passed along each fan-out route.
There seems to be a simpler way of correlating the fan-in and fan-out message: instead of doing the above, I can add an additional branch beside the necessary routes, including an addition AggregateRequest node with the same aggregation name. Let's name this AggregateRequest node's folder "PassAll4Agg". Only in this route, the MQOutput node points to the same queue as that of the MQInput node before the AggregateReply node.
So upon receiving all the replies, of course including the original msg passed direclty to it. I can use the following statement to set the combined message correlId:
set OutputRoot.MQMD.CorrelId = InputRoot.ComIbmAggregateReplyBody.PassAll4Agg.MQMD.MsgId;
It seems to me this should work. If it does, we can completely avoid the complicated method illustrated in the documentation under
http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r1m0/topic/com.ibm.etools.mft.doc/ac12312_.htm
What do you think?
 _________________ pcelari
-----------------------------------------
- a master of always being a newbie |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Oct 30, 2009 9:48 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
The message received by AggregateReply has to actually be a reply message, not a datagram, if I recall correctly. |
|
Back to top |
|
 |
pcelari |
Posted: Fri Oct 30, 2009 10:44 am Post subject: |
|
|
Chevalier
Joined: 31 Mar 2006 Posts: 411 Location: New York
|
you're right. I should include this too:
set OutputRoot.MQMD.MsgType = MQMT_DATAGRAM;
but I wonder where is the field Properties.ReplyIdentifier set?
 _________________ pcelari
-----------------------------------------
- a master of always being a newbie |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Oct 30, 2009 1:20 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
To pass the original MQMD we have added a branch to the fanout.
The MQMD of the originator is serialized and passed as message payload to a dummy reply flow and to the Fan-in.This way the fan in has all the info needed to send the reply to the originator.  _________________ MQ & Broker admin |
|
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
|
|
|
|