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 » will this trick work in correlating fan-in with fan-out?

Post new topic  Reply to topic
 will this trick work in correlating fan-in with fan-out? « View previous topic :: View next topic » 
Author Message
pcelari
PostPosted: Fri Oct 30, 2009 8:38 am    Post subject: will this trick work in correlating fan-in with fan-out? Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Fri Oct 30, 2009 9:48 am    Post subject: Reply with quote

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
View user's profile Send private message
pcelari
PostPosted: Fri Oct 30, 2009 10:44 am    Post subject: Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Fri Oct 30, 2009 1:20 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » will this trick work in correlating fan-in with fan-out?
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.