Author |
Message
|
WBIMaestro |
Posted: Wed Jul 19, 2017 5:40 am Post subject: auto-insert correlation id at qmgr |
|
|
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 |
|
 |
zpat |
Posted: Wed Jul 19, 2017 5:57 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 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 |
|
 |
WBIMaestro |
Posted: Wed Jul 19, 2017 7:08 am Post subject: |
|
|
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 |
|
 |
mqjeff |
Posted: Wed Jul 19, 2017 7:14 am Post subject: |
|
|
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 |
|
 |
WBIMaestro |
Posted: Wed Jul 19, 2017 7:26 am Post subject: |
|
|
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 |
|
 |
JosephGramig |
Posted: Wed Aug 02, 2017 10:54 am Post subject: |
|
|
 Grand Master
Joined: 09 Feb 2006 Posts: 1244 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 |
|
 |
Vitor |
Posted: Wed Aug 02, 2017 11:55 am Post subject: |
|
|
 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 |
|
 |
WBIMaestro |
Posted: Wed Aug 02, 2017 12:41 pm Post subject: |
|
|
Acolyte
Joined: 18 Feb 2005 Posts: 53
|
The number of apps downstream are more controllable so we can set requirements there. |
|
Back to top |
|
 |
|