4

I am using Java API for WMQ.

I have seen that RFHUTIL is able to load all queue names in a drop down list for a queue manager.

Same way, I wanted to get all queue names for a queue manager in a list.

It is being done by RFHUTIL, so definitely it is possible. I checked the functions available for MQQueueManager class but could find any solution.

Need some advice.

1 Answer 1

3

Listing queue names in a queue manager is an administrative job. You have to use Programmable Command Format (PCF) classes to do that. There are number of PCF commands to create, delete, list queue, channels, etc. This link describes PCF in detail.

For listing queues you can use MQCMD_INQUIRE_Q or MQCMD_INQUIRE_Q_NAMES PCF command. There are samples shipped with MQ. There is PCF_DisplayActiveLocalQueues.java is a useful one for you.

Sign up to request clarification or add additional context in comments.

2 Comments

One more help please. How not to load the system queue names?
I don't think you can set filter a for not listing SYSTEM.* queues because the queue name parameter can't have a filter. You can specify a absolute or generic names only. But you can consider filtering out SYSTEM.* queues after listing.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.