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 » The Queue Manager Name in a triggered program

Post new topic  Reply to topic
 The Queue Manager Name in a triggered program « View previous topic :: View next topic » 
Author Message
mgrabinski
PostPosted: Mon Jan 20, 2003 2:55 am    Post subject: The Queue Manager Name in a triggered program Reply with quote

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
View user's profile Send private message
dgolding
PostPosted: Mon Jan 20, 2003 4:26 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
zpat
PostPosted: Mon Jan 20, 2003 4:28 am    Post subject: Reply with quote

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
View user's profile Send private message
bob_buxton
PostPosted: Mon Jan 20, 2003 4:33 am    Post subject: Reply with quote

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
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 » IBM MQ API Support » The Queue Manager Name in a triggered program
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.