|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
messageId |
« View previous topic :: View next topic » |
Author |
Message
|
jason_e |
Posted: Wed Aug 20, 2003 9:42 pm Post subject: messageId |
|
|
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 |
|
 |
EddieA |
Posted: Wed Aug 20, 2003 10:08 pm Post subject: |
|
|
 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 |
|
 |
bower5932 |
Posted: Thu Aug 21, 2003 6:19 am Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
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
|
|
|
|