Topic
IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
2 replies Latest Post - ‏2012-11-30T10:22:45Z by SystemAdmin
SystemAdmin
SystemAdmin
8523 Posts
ACCEPTED ANSWER

Pinned topic Uniqueness of IBM.WMQ.MQMessage.MessageId

‏2012-11-20T10:29:11Z |
I have IBM WebSphere MQ 6.0. The .NET methods IBM.WMQ.MQQueue.Put() and IBM.WMQ.MQQueue.Get() take as parameter an IBM.WMQ.MQMessage instance. The property MessageId is filled in these methods. Is this MessageId value unique per Queue or per Queue Manager?
Updated on 2012-11-30T10:22:45Z at 2012-11-30T10:22:45Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    8523 Posts
    ACCEPTED ANSWER

    Re: Uniqueness of IBM.WMQ.MQMessage.MessageId

    ‏2012-11-28T08:33:04Z  in response to SystemAdmin
    as i know MessageId should be unique per Broker not just queue or queue manager
  • SystemAdmin
    SystemAdmin
    8523 Posts
    ACCEPTED ANSWER

    Re: Uniqueness of IBM.WMQ.MQMessage.MessageId

    ‏2012-11-30T10:22:45Z  in response to SystemAdmin
    MessageId can be generated by the queue manager, or set by a user application.

    In the case when it is generated by the queue manager, then it is unique across all systems so long as you follow the rule of not having any queue managers with the same name.

    See the note at the bottom of this page:-
    http://publib.boulder.ibm.com/infocenter/wmqv7/v7r1/topic/com.ibm.mq.doc/fr13190_.htm

    for details on how the MessageId is generated by the queue manager to ensure uniqueness.

    Cheers
    Morag