Posted: Wed Jul 30, 2003 2:54 am Post subject: Aggragation and MQMD
Novice
Joined: 25 May 2003 Posts: 11 Location: SA
Hi,
I'm using aggregation as part of one of my flows. In the book Using the Control Center they tell you to add an MQMD to the message in the Compute node after the Aggregation Reply.
I have added the sentence Set OutputRoot.MQMD.Version = 2; and Set OutputRoot.MQMD.Format = 'MQSTR' . This seems to be working but what I would like to know is why they original MQMD header is not available here and what other fields need to be set ?
I keep on feeling as if I might be missing something here...
The MQMD's of your reply messages are stored and are available for usage after the AggregateReply node. These are stored in the LocaEnvironment under the aggregation name along with the message body folder of the reply.
It is likely that you will have more than one reply message in your scenario and therefore will have multiple MQMD's available in your LocalEnvironment aggregation folder, one for each reply received. However, you will now need to construct an Output message that is usually a combination of your reply messages in some way. This one output message will have to have an MQMD, but which of the multiple reply messages contains the MQMD you want to use? Well aggregation does not do this, so it cannot build an MQMD folder for you. It is left to the user to build a new MQMD folder either using the reply messages MQMD's as a basis, or whether to hardcode new constant values into this new MQMD.
Hope this explanation helps. _________________ Regards
Craig
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