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 Java / JMS » Message and Correlation Id Question

Post new topic  Reply to topic
 Message and Correlation Id Question « View previous topic :: View next topic » 
Author Message
chintu
PostPosted: Wed May 11, 2005 10:43 am    Post subject: Message and Correlation Id Question Reply with quote

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
View user's profile Send private message
bower5932
PostPosted: Wed May 11, 2005 11:56 am    Post subject: Re: Message and Correlation Id Question Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
jefflowrey
PostPosted: Wed May 11, 2005 1:08 pm    Post subject: Reply with quote

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
View user's profile Send private message
malammik
PostPosted: Wed May 11, 2005 4:50 pm    Post subject: Reply with quote

Partisan

Joined: 27 Jan 2005
Posts: 397
Location: Philadelphia, PA

Even if you put your own msgid, I think mq will overwrite it. Use your own header where you define message disposition properties.
_________________
Mikhail Malamud
http://www.netflexity.com
http://groups.google.com/group/qflex
Back to top
View user's profile Send private message Visit poster's website AIM Address
jefflowrey
PostPosted: Thu May 12, 2005 3:21 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Message and Correlation Id Question
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.