Thirumal Reddy
Thirumal Reddy

Reputation: 11

How to access all the queue managers by connecting to the IBM MQ Server using IBM MQ classes in java

I have been trying to find all the queue managers inside IBM MQ Server by giving server details without queue manager name.

The idea is :

As we have ways to find all the queues inside a queue manager can we do similarly to find all queue managers?

Upvotes: 0

Views: 1058

Answers (1)

Mark Taylor
Mark Taylor

Reputation: 1017

No.

PCF operations like getting the list of queues require you to connect to a queue manager first. To get the list of queue managers on a machine requires OS-level commands instead. A couple of ways that can be done

  • run dspmq (if you can work out where it might be - cannot assume it's always in /opt/mqm/bin and might require setmqenv to give it a workable environment) and then parse the output
  • directly parse /var/mqm/mqs.ini (more challenging on Windows or even worse on z/OS).

And if you're trying to do it remotely, then you have to wrap it up in something like ssh.

Upvotes: 3

Related Questions