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 » auto-insert correlation id at qmgr

Post new topic  Reply to topic
 auto-insert correlation id at qmgr « View previous topic :: View next topic » 
Author Message
WBIMaestro
PostPosted: Wed Jul 19, 2017 5:40 am    Post subject: auto-insert correlation id at qmgr Reply with quote

Acolyte

Joined: 18 Feb 2005
Posts: 53

Hi,

Is there anyway to auto-insert a correlation id at the qmgr or auto-copying the message id to correlation id without using something external like a message broker...

Basically, we want to preserve a common identifier while the message is passed between and across applications starting at the first queue manager when the message comes in..
thanks and apologies if this is a duplicitous question...
Back to top
View user's profile Send private message
zpat
PostPosted: Wed Jul 19, 2017 5:57 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5849
Location: UK

duplicitous - no, duplicate, maybe

You could use a MQ exit - like the API crossing exit, but this is a very specialist thing to attempt.

Better to pass the message through some sort of router application, which wouldn't need to be as complex or expensive as message broker.
_________________
Well, I don't think there is any question about it. It can only be attributable to human error. This sort of thing has cropped up before, and it has always been due to human error.
Back to top
View user's profile Send private message
WBIMaestro
PostPosted: Wed Jul 19, 2017 7:08 am    Post subject: Reply with quote

Acolyte

Joined: 18 Feb 2005
Posts: 53

Is there a sample API crossing exit I can look at? I was thinking of looking at the channel message exit but guessing API crossing exit would be more appropriate
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Jul 19, 2017 7:14 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

I'm confused...

Why can't the application sending the message do this?
_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
WBIMaestro
PostPosted: Wed Jul 19, 2017 7:26 am    Post subject: Reply with quote

Acolyte

Joined: 18 Feb 2005
Posts: 53

Because there are 100s of them, and we don't control them and several of them are legacy
Back to top
View user's profile Send private message
JosephGramig
PostPosted: Wed Aug 02, 2017 10:54 am    Post subject: Reply with quote

Grand Master

Joined: 09 Feb 2006
Posts: 1230
Location: Gold Coast of Florida, USA

So you are asking if there is a magic widget that will record a MsgId that one of these 100s of apps reads and override the CorrelId with it on one or more of the msgs produced by that app?

BTW, the standard for apps that read a msg and produce correlated msgs is to copy the original MsgId to the produced msg's CorrelId and tell MQ to generate a new MsgId. It would be up to the app to know if it should forward CorrelIds...
Back to top
View user's profile Send private message AIM Address
Vitor
PostPosted: Wed Aug 02, 2017 11:55 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

WBIMaestro wrote:
Because there are 100s of them, and we don't control them and several of them are legacy


So what's to stop any one of these resetting the correl id for it's own purposes? Or generating a new msg id?

Both of those actions would hose up any consistency this exit would introduce.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
WBIMaestro
PostPosted: Wed Aug 02, 2017 12:41 pm    Post subject: Reply with quote

Acolyte

Joined: 18 Feb 2005
Posts: 53

The number of apps downstream are more controllable so we can set requirements there.
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 » General IBM MQ Support » auto-insert correlation id at qmgr
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.