Posted: Fri Aug 05, 2005 6:50 am Post subject: combining two messages in the flow
Novice
Joined: 10 Mar 2005 Posts: 19
Hello,
The scenario is like this.
Client application is sending two messages with certain records in each message in a queue. In the message flow we need to combine these two messages in single message and send it to output queue. What will the best approach in this situation?
Is there any way by which we can get two grouped messages in the flow at a time or something like that.
Appreciate for any answers.
You can build a custom node which combines all the messages from a group to one. Let that one enter a new flow en define a messageset for the new structure.
We did it like this, all messages are arriving on a Q, we read the messages from that Q and put a sequence number in the correlation ID to put it onto an intermediate Q.
When the last message arrives we get all the messages from the intermediate Q and combine them into one. This large message is routed into the message flow which proceses the content.
Remark: the sending system makes sure that the sequence will not overlap between two groups of messages.
You can also use the grouping functionality of MQ.
Basically we added some functionality to the MQGet node. This one takes the messages strips of the MQ header information and pasts all the information after eachother.
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