|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
The Queue Manager Name in a triggered program |
« View previous topic :: View next topic » |
Author |
Message
|
mgrabinski |
Posted: Mon Jan 20, 2003 2:55 am Post subject: The Queue Manager Name in a triggered program |
|
|
Master
Joined: 16 Oct 2001 Posts: 246 Location: Katowice, Poland
|
Hi,
When writting a triggered program, how do I know the queue manager name? The MQTM structure cointains only the following:
Code: |
application id
application type
environment data
process name
queue name
trigger data
user data
|
To be specific, I'm using MQ C++ classes
Thanks for any help. _________________ Marcin Grabinski <>< |
|
Back to top |
|
 |
dgolding |
Posted: Mon Jan 20, 2003 4:26 am Post subject: |
|
|
 Yatiri
Joined: 16 May 2001 Posts: 668 Location: Switzerland
|
Look at the MQTMC2 structure - this has QMGR name tacked on the end.
The trigger monitor (runmqtrm) should call your program with this. Or, there is a sample program for trigger monitoring, which is easy to get going and run.... |
|
Back to top |
|
 |
zpat |
Posted: Mon Jan 20, 2003 4:28 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
Most triggered applications tend to use only one queue manager on a given platform so you could code the name in a .ini file or just connect to the default queue manager and then retrieve the name if you need it.
If you can be triggered by different queue managers (presumably this means you have a MQ client trigger monitor) then I suppose you could always arrange to pass the queue manager name in the user data from the trigger message.
The Notes trigger monitor that I use (MA7K) does make the queue manager name available to the triggered Notes application. |
|
Back to top |
|
 |
bob_buxton |
Posted: Mon Jan 20, 2003 4:33 am Post subject: |
|
|
 Master
Joined: 23 Aug 2001 Posts: 266 Location: England
|
What platform are you using?
Have a look at th MQTMC2 structure which is a version of the trigger message structure including a QMgrName field. _________________ Bob Buxton
Ex-Websphere MQ Development |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|