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 » General IBM MQ Support » How to get original message id of publication?

Post new topic  Reply to topic
 How to get original message id of publication? « View previous topic :: View next topic » 
Author Message
ktg
PostPosted: Fri Dec 17, 2010 4:14 am    Post subject: How to get original message id of publication? Reply with quote

Centurion

Joined: 09 Jan 2006
Posts: 138
Location: India

Hi All,

Is it possible to get message id/correlation id set in the publisher application by subscriber application. If yes, could please provide links to get more information.

Thanks in advance,
Kalpana
Back to top
View user's profile Send private message AIM Address
mqjeff
PostPosted: Fri Dec 17, 2010 4:15 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

What happens when you try it?
Back to top
View user's profile Send private message
ktg
PostPosted: Fri Dec 17, 2010 4:25 am    Post subject: Reply with quote

Centurion

Joined: 09 Jan 2006
Posts: 138
Location: India

Message id and correlation id of message received by subcriber application is not same as that of the message id/correlation id set by the publisher application.
For ex., publisher has set message id as XYZ and correlation id has not set.
The subscriber is receiving message with ABC as message id and PQR as correlation id.

I could not find any document which explains relationship between message id/correlation id in published/subscribed message .
Back to top
View user's profile Send private message AIM Address
mqjeff
PostPosted: Fri Dec 17, 2010 4:36 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

So, given that Pub/Sub is One To Many, do you really want every subscription message to have the SAME message id?

What requirement are you trying to fulfill by having the messageId set by the publisher?
Back to top
View user's profile Send private message
ktg
PostPosted: Fri Dec 17, 2010 4:45 am    Post subject: Reply with quote

Centurion

Joined: 09 Jan 2006
Posts: 138
Location: India

No I dont want every subscription message to have the SAME message id.

There is system A which sends "exchange rates" message. Application B and C would need exchange rate information.
So there is a message flow which takes A's message and publishes it in CDM format. There is another flow which takes CDM exchange rate message and puts in to B's queue. One more flow to take CDM exchange rate message and put it in to C's queue.

For auditing/debugging we need to relate messages/correlation ids in these flows:
A to CDM and CDM to B
A to CDM and CDM to C
Back to top
View user's profile Send private message AIM Address
mqjeff
PostPosted: Fri Dec 17, 2010 4:55 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Okay, so you just want an audit trail.

Using msgid/correlId for this is not a bad thought, but as you have found it may not apply very well in a pub/sub domain.

You'll have to look for something else. You CAN, if you specify the Put options right options, have the publisher forward the correlationID to all subscription messages. But only if you have a pub-sub hierarchy, not a collective.
Back to top
View user's profile Send private message
ktg
PostPosted: Sun Dec 19, 2010 9:29 pm    Post subject: Reply with quote

Centurion

Joined: 09 Jan 2006
Posts: 138
Location: India

I checked the MQPMO options and I tried setting correlation id in publication message and without setting "MQPMO_NEW_CORREL_ID". But, still the correlation id is not getting passed to subscriptions Am I missing some thing?
Back to top
View user's profile Send private message AIM Address
fjb_saper
PostPosted: Sun Dec 19, 2010 9:44 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

ktg wrote:
I checked the MQPMO options and I tried setting correlation id in publication message and without setting "MQPMO_NEW_CORREL_ID". But, still the correlation id is not getting passed to subscriptions Am I missing some thing?


I hope your subscription is not setup by correlationId (default?).
What you can get is a confirmation that the publication was successful. This confirmation should then be sufficient as you trust MQ to forward the published message to all subscribers.

If you really need to track things you can have the publisher add a property in the usr folder of the RFH2 and verify it at the subscriber level.

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
ktg
PostPosted: Sun Dec 19, 2010 10:06 pm    Post subject: Reply with quote

Centurion

Joined: 09 Jan 2006
Posts: 138
Location: India

Yes my subscription is not set up for a particular correlation id.
I will discuss the option of using a property in usr folder with my manager. Thanks for the suggestion.

-Kalpana
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » How to get original message id of publication?
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.