Author |
Message
|
Yash |
Posted: Wed Nov 06, 2002 6:37 am Post subject: How to match Corelation Id |
|
|
Novice
Joined: 26 Sep 2002 Posts: 24
|
Hai,
I am trying to match the message Id and corelation Id of the message in the input node of the message flow. But the problem I have is the application is sending different message Id and Corelation Id for each message it is sending.Can anyone explain me how this exactly works.
Thanks, _________________ Yash |
|
Back to top |
|
 |
Yanghui |
Posted: Wed Nov 06, 2002 8:30 am Post subject: |
|
|
Disciple
Joined: 08 May 2002 Posts: 151 Location: Dublin, Ireland
|
Hi, there,
I don't quite understand what you want to do.
Two points.
A. If the user ID the application running on has enough authority, the app can use one msgID and CorrID for all the msgs it sends out. Then your msgflow can check the two fields against the values you preagree with the app. It's doable but just a bit unusual.
B. If each msg carrys unique msgID, then msgflow has to get the value of the msgID somewhere outside of msgflow beforehand.
-Yanghui |
|
Back to top |
|
 |
Yash |
Posted: Wed Nov 06, 2002 8:56 am Post subject: |
|
|
Novice
Joined: 26 Sep 2002 Posts: 24
|
Thanks Yanghui.
What I am trying to say is the application sends the message with messageId and Corelation Id. But the problem is for each message the messageId and Corelation Id are unique.So how can I set the Corelation Id and Message Id in Control Center.
Thanks, _________________ Yash |
|
Back to top |
|
 |
Yanghui |
Posted: Wed Nov 06, 2002 10:00 am Post subject: |
|
|
Disciple
Joined: 08 May 2002 Posts: 151 Location: Dublin, Ireland
|
New MsgId or new CorrId or both of them can be assigned to a msg on the MQOutput before it's sent on queue. This can gurantee msgId or CorrId unique ability.
Hope this is what you are looking for.
-Yanghui |
|
Back to top |
|
 |
Yash |
Posted: Wed Nov 06, 2002 2:05 pm Post subject: |
|
|
Novice
Joined: 26 Sep 2002 Posts: 24
|
Yanghui,
I don't want to assign a correlation Id or Message Id values to the message in the MessageFlow. I want to take a message from the queue only if the corelation Id value or Message Id value is matched in the input node. But the application which is sending the message that is giving different massageId and corelation Id each time, so how can I give a exact value to match in the input node.
Thanks, _________________ Yash |
|
Back to top |
|
 |
muralihegde |
Posted: Wed Nov 06, 2002 9:59 pm Post subject: |
|
|
Centurion
Joined: 30 Apr 2002 Posts: 108
|
Hi Yash,
You are right. It is not advisable to use the match MsgId option in the MQInput Node, because it will add a constraint to the sending application that the msgId should always be the same for all the messages.
This might not be desirable, because sometimes, the Queue Manager will give error during MQPUT call if the two message Ids are same. Also it is desirable to have the MsgIds unique in the MQ Domain.
But you might want to use the correlation Id for the above purpose. You might set the corrId to a pre-defined value in your sending application (let MsgId be self generated) and use this value in the MQSI MQInput Node.
But I am wondering why do you want to use the abvoe option looking for a particular MsgId or Corr Id within MQSI? If your purpose is to match the reply to a previous response, then You might want to explore the possibility of using Aggregation Nodes within your message flows.
-Hope this helps.. |
|
Back to top |
|
 |
|