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 API Support » How does queue manger generate time stamp in MsgId

Post new topic  Reply to topic
 How does queue manger generate time stamp in MsgId « View previous topic :: View next topic » 
Author Message
accosun
PostPosted: Fri Dec 21, 2001 8:48 am    Post subject: Reply with quote

Apprentice

Joined: 20 Dec 2001
Posts: 45
Location: Moscow

Hello everybody!

We are going to built a transport system based on MQSeries and we are going to use MsgId-s for additional processing at application level. So, we need to know, how does queue manger generate the second 12-byte part of MsgId. We know, that it's a timestamp, but what is the algorytm of it's creation?

Thank you in advance, Alexander
Back to top
View user's profile Send private message Send e-mail Visit poster's website
jhalstead
PostPosted: Sun Dec 23, 2001 9:32 am    Post subject: Reply with quote

Master

Joined: 16 Aug 2001
Posts: 258
Location: London

Alexander,

Can't be 100% sure as I can't find any explicit detail on the MQMD.MsgId field in the manuals. However as far as I know the first 12 bytes are the source queue manager name and the last 12 are effectively a counter which gets incremented with each new message. If you view the hex representation of the msgid either through MQExplorer or amqsbcg and put a few messages on at different intervals then this should be reasonably clear.

Thinking about it, as queue manager generated msgid's are meant to be unique it'd be quite complex to enforce a time stamp based schema when a big batch of messages placed on under syncpoint were committed.

Anyway, on holiday at the moment and don't have access to MQ (don't know how I'm going to survive!) so my apologies if this inaccurate...

Jamie
Back to top
View user's profile Send private message Send e-mail
accosun
PostPosted: Mon Dec 24, 2001 3:00 am    Post subject: Reply with quote

Apprentice

Joined: 20 Dec 2001
Posts: 45
Location: Moscow

Thanx a lot! I got the same ideas about MsgId-s numbers, but I was confused by manuals and my collegues's oppinion. Thank you again and Merry Chrstmas!
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » How does queue manger generate time stamp in MsgId
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.