Use automatic client reconnection
We can make client applications reconnect automatically, without writing any additional code, by configuring a number of components.
Automatic client reconnection is inline. The connection is automatically restored at any point in the client application program, and the handles to open objects are all restored.
In contrast, manual reconnection requires the client application to re-create a connection using MQCONN or MQCONNX, and to reopen objects. Automatic client reconnection is suitable for many, but not all client applications.
For more information, see Automatic client reconnection.
Parent topic: Connect IBM MQ MQI client applications to queue managers