MQ

 View Only

 Queue creation on HA queue manager

K Priyanka's profile image
K Priyanka posted Thu May 22, 2025 01:08 PM

Hello All,

I need to create queues on HA queue managers(Active and Standby). I am running define command on active queue manager.

will the queues will be created on standby queue manager. does it mean when standby becomes active application can connect without any issue. ?

Thanks

K Priyank

Erik Houlberg's profile image
Erik Houlberg

The answer is maybe.

If the QM instances have been created and registered correct, then the queue will be available. 
You do not mention which type of QM setup you are planning to use: HA cluster, Multi-Instance, RDQM, Native HA.

If the application uses local binding then the application obviously need to be active on the server where the QM is active.

When the QM becomes active on another server (e.g. Multi-Instance) then the network settings (i.e. firewall rules) may prevent MQ client connectivity, which is why it is always a good idea to verify connectivity before real use of a QM. For that purpose the QM should be switched to become active on all the possible servers where the QM can run active and connectivity test conducted against each of the servers.

Francois Brandelik's profile image
Francois Brandelik IBM Champion

Will the queues be created on standby instances:  definitely.

The stand by instance is an instance of the same queue manager. As the storage is shared / replicated you will definitely see the newly defined objects when  a different instance becomes active.

Hope it helps

om prakash's profile image
om prakash IBM Champion

to add an additional point - If u need data to be preserved; make sure the queue is defined persistent.

Francois Brandelik's profile image
Francois Brandelik IBM Champion

The persistence attribute of the queue only affects messages that are put with persistence set "AS QDEF"

The persistence of the message should be an application responsibility and not an MQ admin responsibility.

This said if the application wants to use persistence as QDEF, the MQ admin can help.

HÜNKAR HANÇER's profile image
HÜNKAR HANÇER

Hello,

The queue definition you create on the active Queue Manager will also be valid for the Queue Manager that becomes standby.

So when the standby becomes active:
The queue definition will also exist there.
The application can connect using the same queue name.
If you are using a shared disk, the standby Queue Manager will already have access to the same data.