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 API Support » Howto find out the origin of a message

Post new topic  Reply to topic
 Howto find out the origin of a message « View previous topic :: View next topic » 
Author Message
jaros
PostPosted: Thu Oct 28, 2004 2:14 am    Post subject: Howto find out the origin of a message Reply with quote

Newbie

Joined: 21 Aug 2003
Posts: 1

Hi,
is there any possibility to find out the original queue manager and queue a message
was put in?
I have one local queue which is connected to 15 remote queues (15 different queue manager)
on the sender side. I need now consider the origin of the message.
The sending application sets no information related to the origin in the message descriptor.
It is not possible to change it.

Is there some information which is always set by default?

We consider also to write a channel exit which would extend the message descriptor
of incoming messages. Would it work? Would it work on a NSK machine?

I really don't like to hack the messageId which should contain the queue manager coded somewhere
in the beginning.

Have you another idea?

Thanks for any suggestion.
Greeting
Jaro
Back to top
View user's profile Send private message
KeeferG
PostPosted: Thu Oct 28, 2004 2:29 am    Post subject: Reply with quote

Master

Joined: 15 Oct 2004
Posts: 215
Location: Basingstoke, UK

Have tried using the reply to queue and reply to queue manager fields. Thats usually how you specify the return destinations.
_________________
Keith Guttridge
-----------------
Using MQ since 1995
Back to top
View user's profile Send private message Visit poster's website
PeterPotkay
PostPosted: Thu Oct 28, 2004 11:52 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

The Reply To QM field in the MQMD *usually* has the sending QM name in it. If the putting app leaves it blank on the MQPUT, then the sending QM fills in its name.

But the app on QM1 can specify QMX for the Reply2QM anytime it wants, so this is not a foolproof way.

Even the MessageID is not fool proof, as the app can set that as well.

In other words, there is no definitive way to prove where a message came from.
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
kirani
PostPosted: Thu Oct 28, 2004 2:00 pm    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

It's worth changing sending app to populate some kind of identifier in one of the MQMD field, For Example, MQMD.ApplIdentityData
_________________
Kiran


IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries

Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » Howto find out the origin of a message
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.