Posted: Thu Sep 11, 2008 9:05 am Post subject: Generating list of all queues in a queue manager via C++ API
Newbie
Joined: 11 Sep 2008 Posts: 2 Location: London, England
Environment: Solaris 10 with MQ client libraries
I’ve got no access to runmqsc as we only have a client installation. Does anyone know whether it’s possible to write C++ code linked with the MQ client libraries which can list all queues in a queue manager?
Posted: Thu Sep 11, 2008 10:51 am Post subject: Re: Generating list of all queues in a queue manager via C++
Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
lab1301 wrote:
Environment: Solaris 10 with MQ client libraries
I’ve got no access to runmqsc as we only have a client installation. Does anyone know whether it’s possible to write C++ code linked with the MQ client libraries which can list all queues in a queue manager?
Regards
Check out the manuals there is something about PCF (Programmable Command Format) messages...
You can also use MO72 support pack (client form of mqsc)...
Posted: Fri Sep 12, 2008 2:03 am Post subject: Re: Generating list of all queues in a queue manager via C++
Newbie
Joined: 11 Sep 2008 Posts: 2 Location: London, England
fjb_saper wrote:
lab1301 wrote:
Environment: Solaris 10 with MQ client libraries
I’ve got no access to runmqsc as we only have a client installation. Does anyone know whether it’s possible to write C++ code linked with the MQ client libraries which can list all queues in a queue manager?
Regards
Check out the manuals there is something about PCF (Programmable Command Format) messages...
You can also use MO72 support pack (client form of mqsc)...
Enjoy
Thanks for pointing me in the right direction. The MQ sample program amqsailq.c lists all queues and queue depths. Ideally I want a C++ API rather than a C API but it looks like I’ve got a potential solution.
The C++ code fragment that gives the queue depth of a named queue is as follows. You wouldn’t know whether there is a C++ API for listing all queues in a queue manager do you?
Posted: Fri Sep 12, 2008 2:11 am Post subject: Re: Generating list of all queues in a queue manager via C++
Jedi Council
Joined: 02 Nov 2006 Posts: 6339
fjb_saper wrote:
You can also use MO72 support pack (client form of mqsc)...
A wheel is a wheel and needs no reinvention. _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys.
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