CLIENTRECONNECTOPTIONS
Options governing reconnection.
Applicable Objects
ConnectionFactory, QueueConnectionFactory, TopicConnectionFactory
JMS administration tool long name: CLIENTRECONNECTOPTIONS
JMS administration tool short name: CROPT
Programmatic access
Setters/getters
- MQConnectionFactory.setClientReconnectOptions()
- MQConnectionFactory.getClientReconnectOptions()
Values
- QMGR
-
The application can reconnect, but only to the queue manager to which it originally connected.
Use this value if an application can be reconnected, but there is an affinity between the WebSphere MQ classes for JMS application, and the queue manager to which it first established a connection.
Choose this value if you want an application to automatically reconnect to the standby instance of a highly available queue manager.
To use this value programmatically, use the constant WMQConstants.WMQ_CLIENT_RECONNECT_Q_MGR.
- ANY
-
The application can reconnect to any queue manager.
Use the reconnect option only if there is no affinity between the WebSphere MQ classes for JMS application and the queue manager with which it initially established a connection.
To use this value from a program, use the constant WMQConstants.WMQ_CLIENT_RECONNECT.
- DISABLED
-
The application will not be reconnected.
To use this value programmatically, use the constant WMQConstants.WMQ_CLIENT_RECONNECT_DISABLED.
- ASDEF
-
Whether the application will reconnect automatically depends on the value of the WebSphere MQ channel attribute DefReconnect.
To use this value from a program, use the constant WMQConstants.WMQ_CLIENT_RECONNECT_AS_DEF.