Pinned topic Uniqueness of IBM.WMQ.MQMessage.MessageId
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
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
Re: Uniqueness of IBM.WMQ.MQMessage.MessageId2012-11-30T10:22:45ZThis is the accepted answer. This is the accepted answer.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:-
for details on how the MessageId is generated by the queue manager to ensure uniqueness.