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 » C++ inquire call with ImqQueueManager to get QM name

Post new topic  Reply to topic
 C++ inquire call with ImqQueueManager to get QM name « View previous topic :: View next topic » 
Author Message
dnaren
PostPosted: Tue Mar 11, 2003 7:03 am    Post subject: C++ inquire call with ImqQueueManager to get QM name Reply with quote

Apprentice

Joined: 10 Aug 2001
Posts: 45
Location: Charlotte, NC

I am trying to get the queue manager name through the inquire() call. The application connects to the queue manager using channel definition table file. I want to get the name of the queue manager after the application is connected to it.
The inquire() method is a protected member of ImqObject class and I am not able to call it with the queue manager object. ImqObject is an abstract class.

Can any C++ gurus here help me figure out this stuff for me?

Thanks,
Naren.
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
meekings
PostPosted: Tue Mar 11, 2003 8:22 am    Post subject: Reply with quote

Voyager

Joined: 28 Jun 2001
Posts: 86
Location: UK, South West

Don't know the C++ API, but can't you just use imqObject's name() public method: ImqString qmName = mgr.name()? You'd use setName() to connect to a named QM, so I'm guessing that the name mght be set after connection?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
dnaren
PostPosted: Tue Mar 11, 2003 8:29 am    Post subject: Reply with quote

Apprentice

Joined: 10 Aug 2001
Posts: 45
Location: Charlotte, NC

I am using a blank string for queue manager name when I connect using the channel definition table file. I don't know the queue manager name at that time. After the Connect call is successful, I want get the queue manager name through the inquire() call.
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
meekings
PostPosted: Tue Mar 11, 2003 9:00 am    Post subject: Reply with quote

Voyager

Joined: 28 Jun 2001
Posts: 86
Location: UK, South West

The documentation for ImqObject says:

Quote:
name The name (up to 48 characters) of the queue manager, queue, namelist, or
process, as appropriate. The initial value is a null string. The name of a
model queue changes after an open to the name of the resulting dynamic
queue.
Note: An ImqQueueManager can have a null name, representing the
default queue manager. The name changes to the actual queue
manager after a successful open. An ImqDistributionList is dynamic
and must have a null name."
[/b]
Back to top
View user's profile Send private message Send e-mail Visit poster's website
dnaren
PostPosted: Tue Mar 11, 2003 9:14 am    Post subject: Reply with quote

Apprentice

Joined: 10 Aug 2001
Posts: 45
Location: Charlotte, NC

Oh well, I don't need to (or I can't) call inquire(). It's called automatically and I just need to use name() method on queue manager object after Connect() call is successful.

I am not calling Open() on queue manager. Whether the queue manager is default or not default is not my concern. I am writing a client application.
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » C++ inquire call with ImqQueueManager to get QM name
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.