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 Installation/Configuration Support » messageId

Post new topic  Reply to topic
 messageId « View previous topic :: View next topic » 
Author Message
jason_e
PostPosted: Wed Aug 20, 2003 9:42 pm    Post subject: messageId Reply with quote

Apprentice

Joined: 19 Aug 2003
Posts: 33

Hi,
I'm using base Java to extract the messageId from an MQMessage object. I would like to use this message identifier, which looks something like [B@e0be38, as a unqiue idenfifier in my database.

Can be guaranteed that the messageId would always be unique? If not how can I ensure the MQ always generated a unique messageid?

Thanks
Jason
Back to top
View user's profile Send private message
EddieA
PostPosted: Wed Aug 20, 2003 10:08 pm    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

If the sender of the message has let MQSeries generate the message ID, then yes it is unique.

One thing to be aware of, is that the message ID is a byte field, not a string.

Cheers,
_________________
Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
Back to top
View user's profile Send private message
bower5932
PostPosted: Thu Aug 21, 2003 6:19 am    Post subject: Reply with quote

Jedi Knight

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

The message id is unique. However, what you have printed above looks more like a reference (address) to a message id rather than the actual message id. You might want to make sure you have what you think you have. You didn't mention a programming language. There is an amqsbcg.c that ships with the product that dumps the message id in hex. There is also an amqsbcg.java at

http://www.developer.ibm.com/tech/sampmq.html

that does the same thing with java.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » messageId
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.