ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » Uniqueness of messageId and correlationId

Post new topic  Reply to topic
 Uniqueness of messageId and correlationId « View previous topic :: View next topic » 
Author Message
binnyms
PostPosted: Thu Mar 25, 2004 2:24 am    Post subject: Uniqueness of messageId and correlationId Reply with quote

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
View user's profile Send private message
bower5932
PostPosted: Thu Mar 25, 2004 2:38 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
bduncan
PostPosted: Thu Mar 25, 2004 11:49 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address
bduncan
PostPosted: Thu Mar 25, 2004 11:53 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address
binnyms
PostPosted: Thu Mar 25, 2004 9:15 pm    Post subject: Reply with quote

Novice

Joined: 09 Jan 2004
Posts: 11

thank you guys for your responses
Binny
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Uniqueness of messageId and correlationId
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.