|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
C++ inquire call with ImqQueueManager to get QM name |
« View previous topic :: View next topic » |
Author |
Message
|
dnaren |
Posted: Tue Mar 11, 2003 7:03 am Post subject: C++ inquire call with ImqQueueManager to get QM name |
|
|
 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 |
|
 |
meekings |
Posted: Tue Mar 11, 2003 8:22 am Post subject: |
|
|
 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 |
|
 |
dnaren |
Posted: Tue Mar 11, 2003 8:29 am Post subject: |
|
|
 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 |
|
 |
meekings |
Posted: Tue Mar 11, 2003 9:00 am Post subject: |
|
|
 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 |
|
 |
dnaren |
Posted: Tue Mar 11, 2003 9:14 am Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
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
|
|
|
|