Author |
Message
|
chintu |
Posted: Wed May 11, 2005 10:43 am Post subject: Message and Correlation Id Question |
|
|
 Acolyte
Joined: 27 Dec 2004 Posts: 64
|
I have a situation where a server application has to return multiple replies for a single request. However due to a third party dependency the correlation id is not accessible for the server application. But, the MQ message id is.
I was told that the server could use the message id just like the correlation id and client can pick them all up seamlessly. This will result in multple replies with the same message id. My understanding is that the message ids are unique for physical messages.
Has anybody set multiple reply messages with the same message id before and had it working?
Any help is highly appreciated. |
|
Back to top |
|
 |
bower5932 |
Posted: Wed May 11, 2005 11:56 am Post subject: Re: Message and Correlation Id Question |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
chintu wrote: |
My understanding is that the message ids are unique for physical messages. |
If you have WMQ generate the message id's for the message, then they are unique for each message. However, you can generate your own and put them into any message you want. There is nothing in WMQ that 'requires' them to be unique. |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed May 11, 2005 1:08 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Except you will likely run into trouble with any monitoring/management tools if you have to browse these messages - as all the ones I've ever used "assumed" that the combination of msgID & corrID would be unique on the queue.
But you're really stuck with a really poor design. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
malammik |
Posted: Wed May 11, 2005 4:50 pm Post subject: |
|
|
 Partisan
Joined: 27 Jan 2005 Posts: 397 Location: Philadelphia, PA
|
|
Back to top |
|
 |
jefflowrey |
Posted: Thu May 12, 2005 3:21 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
malammik wrote: |
Even if you put your own msgid, I think mq will overwrite it. |
Only if they're using JMS. It's the JMS provider that always resets the messageID - not base MQ.
But, yeah,
malammik wrote: |
Use your own header where you define message disposition properties. |
_________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
|