|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
need to combine two incoming messages into one message |
« View previous topic :: View next topic » |
Author |
Message
|
rimple |
Posted: Thu Aug 04, 2005 11:15 pm Post subject: need to combine two incoming messages into one message |
|
|
Newbie
Joined: 01 Jul 2005 Posts: 8
|
My requirement is such that there will be two messages of diiferent format(Payee payment and Bill payment) being put on the same q, and I have to combine them.
Can someone please guide how to do this ? Which of the following approaches should I take ? also what precautions do I need to take?
Possible Approaches:
1. group them with same msg id and group id :
Set property of q as process msgs in groups. It'll send msgs with same group id and msg id.
I'll save the first message in DB and then on the arrival of second message I'll retrive the frst one from DB and combine both.
Precautions which we need to take :
Pls make sure only one msg of payee payment and 1 of Bill payment arrive with same msg id and group id and nothing else than it
Take 1 msg, put it in DB. Take 2nd msg, pick the first 1 frm DB, combine them and create o/p msg.
Can commit by group property of MQInput help here by any ways?
2. how abt two separate flows to start depending on topic as Payee payment or Bill payment.
1 flow wud take paye payment and 2nd would take bill payment. And then one of them, say payee payement would save msg in DB. And other one Bill payment would retrive that from DB, combine them and create a combined message.
3. aggregate req / reply :
I read about aggregatereply node but I couldn't understand anything.
4. If none of the above can work, then I'll put the two msgs in two diff queues and group them on basis of msg id :
connect two input nodes to same compute node.
Or tht doesn't work, then Take 1 msg, put it in DB. Take 2nd msg, pick the first 1 frm DB, combine them and create o/p msg.
Precautions :
Pls make sure abt msg id and sequence and timing of the msg. |
|
Back to top |
|
 |
elvis_gn |
Posted: Fri Aug 05, 2005 1:47 am Post subject: |
|
|
 Padawan
Joined: 08 Oct 2004 Posts: 1905 Location: Dubai
|
Hi rimple,
Will the messages come one after the other or they can arrive seperately ??
If seperately what is the expected time interval ?? |
|
Back to top |
|
 |
rimple |
Posted: Fri Aug 05, 2005 1:57 am Post subject: |
|
|
Newbie
Joined: 01 Jul 2005 Posts: 8
|
Messages might come after some delay. But that can be arranged that messages would come in some sequence or within some time interval, if required. |
|
Back to top |
|
 |
jefflowrey |
Posted: Fri Aug 05, 2005 3:50 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
You can not process more than one message at a time in a flow, without using the MQGet Support Pack.
You can only solve this problem using aggregation OF SOME KIND. If you find the Aggregation nodes confusing or complex, then consider inserting messages into a database table, and then selecting them when they are done.
This has been talked about many times, there is a lot more information about ways to do this already posted.
Good luck with your research. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
RichA |
Posted: Fri Aug 12, 2005 3:41 am Post subject: |
|
|
 Centurion
Joined: 14 Mar 2002 Posts: 102
|
There's always the option of The AMIT/CEP plug-in nodes?
Have a look at supportpac IA0S. |
|
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
|
|
|
|