Anyone know how to enumerate all QueueManagers on the local machine, and the Queues each manager owns? I'm writing a test harness to generate messages and want to be able to select the QM and Q to send to.
Havent done this myself, but here are a few suggstions.
if you are using MQ client, you could use client channel table.
if you are using MQ server, then here are some of the options.
1) In your app, issue a system command and call MQ command DSPMQ which displays a list of queue managers on the local machine. Copy this into either a local buffer or a file and parse the qm name from it.
2) Similarly call saveqmgr from your system command and repeat the same process as in step 1 to get all the local queues.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.