Author |
Message
|
Nanenbaum |
Posted: Mon Mar 17, 2008 7:45 am Post subject: CorrelID and MessageID |
|
|
Newbie
Joined: 12 Mar 2008 Posts: 7 Location: Inet
|
Hi all you people:
I dont't understand how it works de correlationid and de messsageid, somebody can explain this to me or gimme some link or a paper please or example?
Thanks. |
|
Back to top |
|
 |
Vitor |
Posted: Mon Mar 17, 2008 7:48 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Message id = the id of the message
Correlation id = the id of a message related to the one you're looking at. Often the id of a request which prompted the reply you're processing.
This request/reply model is described in the Intercommunication manual, also in the APG. You'll also find options for retrieving messages by id described in the APR as well as the above publications.
Happy Reading!  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Nanenbaum |
Posted: Mon Mar 17, 2008 10:03 am Post subject: |
|
|
Newbie
Joined: 12 Mar 2008 Posts: 7 Location: Inet
|
Hi Vitor:
I need examples...., who set de correlid and de message id? are they "automatics"?? |
|
Back to top |
|
 |
tleichen |
Posted: Mon Mar 17, 2008 10:52 am Post subject: |
|
|
Yatiri
Joined: 11 Apr 2005 Posts: 663 Location: Center of the USA
|
|
Back to top |
|
 |
Vitor |
Posted: Mon Mar 17, 2008 12:11 pm Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Nanenbaum wrote: |
I need examples...., who set de correlid and de message id? are they "automatics"?? |
They can be, msg id should be, you'll find examples in the documentation I mentioned.
You'll also find a lot of discussion about them on the forum. The Search Button Is Your Friend. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Prashant_MQ |
Posted: Mon Mar 24, 2008 2:56 am Post subject: |
|
|
Apprentice
Joined: 07 Feb 2006 Posts: 28
|
Usually in the app dev environment the message ID is copied back to the correl ID when a reply back is sent to the source system.This will help the source app to match the message ID it had set during the MQPUT with the correl ID that it received while MQGET.Very useful feature when there are too many messages sent to the same destination in very less time.
Default values are
MQPMO_NEW_MESSAGE_ID will cause the queue manager to generate a unique message ID everytime a message is sent to the destination.
MQPMO_NEW_CORREL_ID will cause the queue manager to genegate the correl ID.Not a good practice to set the correl ID,though.
cheers |
|
Back to top |
|
 |
|