Author |
Message
|
Yash |
Posted: Thu Oct 10, 2002 3:59 am Post subject: Single queue with two different flows and messages. |
|
|
Novice
Joined: 26 Sep 2002 Posts: 24
|
Hai,
I have a situation here, where I have a single queue which holds two different messages and I have two different message flows which are taking input from this single queue. I want to know, how will the flows decide which message to take as input message.
Thanks, _________________ Yash |
|
Back to top |
|
 |
wmqiguy |
Posted: Thu Oct 10, 2002 4:11 am Post subject: |
|
|
 Centurion
Joined: 09 Oct 2002 Posts: 145 Location: Florida
|
The short answer is they won't.
You essentially have two choices:
1. Create two queues...one for each message type or;
2. Create a single flow and then make a decision about which of your two original flows to send it to (which are now subflows). This decision can be based on MQRFH2, whether a certain XML field exists, etc.
Good Luck! |
|
Back to top |
|
 |
lillo |
Posted: Thu Oct 10, 2002 4:59 am Post subject: |
|
|
Master
Joined: 11 Sep 2001 Posts: 224
|
Hi,
There is another possibility. If your application set the correlID, or MsgId, to a specific value for each of the message flows then in the MQInput node you could select in the advanced tab Match CorrelId o Match MsgId.
With this you will use only one queue and the messages will be picked up by the correct message flow.
Without this you can´t garantee which message flow will take the message out of the queue.
I hope this help you.
Cheers, _________________ Lillo
IBM Certified Specialist - WebSphere MQ |
|
Back to top |
|
 |
suji |
Posted: Thu Oct 10, 2002 6:29 am Post subject: |
|
|
Newbie
Joined: 10 Oct 2002 Posts: 2
|
Lillo,
Can you tell me where I can find more information about this topic.
Thanks |
|
Back to top |
|
 |
lillo |
Posted: Thu Oct 10, 2002 9:59 pm Post subject: |
|
|
Master
Joined: 11 Sep 2001 Posts: 224
|
For information about distributions lists you can see MQSeries Application Programming Guide to understand the concept and for information about setting the MQInput node refer to Appendix A on Using the Control Center.
If you need anymore help, please be more specific.
Cheers, _________________ Lillo
IBM Certified Specialist - WebSphere MQ |
|
Back to top |
|
 |
suji |
Posted: Tue Oct 15, 2002 7:29 am Post subject: |
|
|
Newbie
Joined: 10 Oct 2002 Posts: 2
|
Lillo,
So the applications has to give a corelationalID and MessageID while sending the message to message flow.If the applications is not sending CorelationalID and MessageID then is there any way we can differentiate the messages.Because the application is not sending CorelationalID and MessageID. |
|
Back to top |
|
 |
lillo |
Posted: Tue Oct 15, 2002 8:23 am Post subject: |
|
|
Master
Joined: 11 Sep 2001 Posts: 224
|
Hi,
If the application can´t set the correlId or msgId to a specific value then the only way I can think of it is having a first message will which will route to the others message flows.
Tell me if you need more help. Pls be more specific and put the two message to see if there is another possibility.
Cheers, _________________ Lillo
IBM Certified Specialist - WebSphere MQ |
|
Back to top |
|
 |
|