|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
When to use message ID and when to use correlation ID |
« View previous topic :: View next topic » |
Author |
Message
|
Joshva |
Posted: Tue Apr 22, 2003 5:46 pm Post subject: When to use message ID and when to use correlation ID |
|
|
Newbie
Joined: 22 Apr 2003 Posts: 1
|
I was wondering if anyone had some official documentation about when to use message ID to match a response message to a request message and when to use correlation ID to do this??
Thanks for your time, Josh |
|
Back to top |
|
 |
mgrabinski |
Posted: Wed Apr 23, 2003 2:14 am Post subject: |
|
|
Master
Joined: 16 Oct 2001 Posts: 246 Location: Katowice, Poland
|
MQ always uses CORRELID for matching response and request (for example in its reports)
In general, MSGID is for identifying a message and CORRELID for matching response and request. But you can use both IDs for whatever purpose you want. _________________ Marcin Grabinski <>< |
|
Back to top |
|
 |
bower5932 |
Posted: Wed Apr 23, 2003 7:03 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
From the Application Programming Guide:
Quote: |
You can use the correlation identifier in any way you like. However, an intended use of this field is for applications to copy the message identifier of a request message into the CorrelId field of a reply message. |
Also, there are some MQRO_* defines in cmqc.h that can be used by a requester to indicate to a server how to pass back message id/correlation id. |
|
Back to top |
|
 |
HrothgarV |
Posted: Thu Apr 24, 2003 6:48 am Post subject: |
|
|
Novice
Joined: 07 Apr 2003 Posts: 17
|
you may use the msgid as a unique identifier for each message you send to another party. then the other party may then populate the correlid with your original msgid when replying. this example ensures uniqueness and simple way of tracking messages you exchange with another party. |
|
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
|
|
|
|