|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Uniqueness of messageId and correlationId |
« View previous topic :: View next topic » |
Author |
Message
|
binnyms |
Posted: Thu Mar 25, 2004 2:24 am Post subject: Uniqueness of messageId and correlationId |
|
|
Novice
Joined: 09 Jan 2004 Posts: 11
|
Hi friends,
I just want to know whether messageId and correlationId is unique within a particular queue in a particular queue manager. ie can I uniquely identify a message at any time with messageId and correlationId,
if the particular message is already removed from the queue will any other message get the same messageId and/or correlationId
thanq |
|
Back to top |
|
 |
bower5932 |
Posted: Thu Mar 25, 2004 2:38 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
MessageIds and CorrelIds are unique. There is a paragraph in the Application Programming Reference manual in the MQMD section that discusses how message id's are generated. |
|
Back to top |
|
 |
bduncan |
Posted: Thu Mar 25, 2004 11:49 am Post subject: |
|
|
Padawan
Joined: 11 Apr 2001 Posts: 1554 Location: Silicon Valley
|
Just to point out something that's probably obvious, but remember that uniqueness is only guaranteed if every message in your system is created with a message id/correllation id that is created by the queue manager.
In other words, if you have two applications putting messages, one of them using the queue manager to generate message ids for it, the other generating message ids programmatically, there is always a chance (however slim) that you'll end up with two messages with the same message id... _________________ Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator |
|
Back to top |
|
 |
bduncan |
Posted: Thu Mar 25, 2004 11:53 am Post subject: |
|
|
Padawan
Joined: 11 Apr 2001 Posts: 1554 Location: Silicon Valley
|
In other words, if you attempt to MQPUT a message with a duplicate message id/correllation id, the queue manager won't throw an error. It will happily accept the duplicate message. _________________ Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator |
|
Back to top |
|
 |
binnyms |
Posted: Thu Mar 25, 2004 9:15 pm Post subject: |
|
|
Novice
Joined: 09 Jan 2004 Posts: 11
|
thank you guys for your responses
Binny |
|
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
|
|
|
|