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 » General IBM MQ Support » Are the msgid's generated by MQ unique?

Post new topic  Reply to topic
 Are the msgid's generated by MQ unique? « View previous topic :: View next topic » 
Author Message
bpolimera
PostPosted: Tue Jun 17, 2003 7:51 am    Post subject: Are the msgid's generated by MQ unique? Reply with quote

Novice

Joined: 22 Apr 2002
Posts: 14

Hi,

I want to know if MQ recycles MSGID's with in a single run and across
multiple runs? By a single run, I mean from QMGR Startup to QMGR shutdown.

And also curious, how MQ generates MSGID's. Does it use current time information to generate MSGID that is unique across time?

I am doing asynchronous messaging and trying to match request and response using msgid/correlid. For this, I need the msgid to be unique, preferably forever.

Thanks in advance,
Balaji.
Back to top
View user's profile Send private message
bower5932
PostPosted: Tue Jun 17, 2003 9:47 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

From the Application Programming Reference:
Quote:

A MsgId generated by the queue manager consists of a 4-byte product identifier ('AMQb' or 'CSQb' in either ASCII or EBCDIC, where 'b' represents a blank), followed by a product-specific implementation of a unique string. In MQSeries this contains the first 12 characters of the queue-manager name, and a value derived from the system clock. All queue managers that can intercommunicate must therefore have names that differ in the first 12 characters, in order to ensure that message identifiers are unique. The ability to generate a unique string also depends upon the system clock not being changed backward. To eliminate the possibility of a message identifier generated by the queue manager duplicating one generated by the application, the application should avoid generating identifiers with initial characters in the range A through I in ASCII or EBCDIC (X'41' through X'49' and X'C1' through X'C9'. However, the application is not prevented from generating identifiers with initial characters in these ranges.


As far as uniqueness, it will be unique (unless you happen to have 2 qmgrs that share the 1st 12 characters of their name and put a message at the same point in time).
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
bpolimera
PostPosted: Tue Jun 17, 2003 12:48 pm    Post subject: Reply with quote

Novice

Joined: 22 Apr 2002
Posts: 14

That clarifies. Thanks very much for your reply.
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 » General IBM MQ Support » Are the msgid's generated by MQ unique?
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.