Automatic client reconnection in .NET

You can make your client reconnect automatically to a queue manager during an unexpected connection break.

A client can unexpectedly become disconnected from a queue manager if, for example, the queue manager stops, or the network or server fails.

Without automatic client reconnection, an error is produced when the connection fails. You can use the error code to help you reestablish the connection.

A client that uses the automatic client reconnection facility is called a reconnectable client. To create a reconnectable client, specify certain options called reconnect options while connecting to the queue manager.

If the client application is a WebSphere MQ .NET client, it can opt to get automatic client reconnection by specifying an appropriate value for CONNECT_OPTIONS_PROPERTY when you use the MQQueueManager class to create a queue manager. See Reconnection options for details of CONNECT_OPTIONS_PROPERTY values.

You can select whether the client application always connects and reconnects to a queue manager of the same name, to the same queue manager, or to any set of queue managers that are defined with the same QMNAME in the client connection table (See Queue Manager Groups in CCDT for details).