Single mode reconnect

To configure the XA reconnect process to operate in a single attempt mode set the ES_XA_RECONNECT environment variable only, to any value.

In this configuration, each time a transaction is about to execute an xa-ping is attempted, if this fails an xa-close and xa-open followed by an xa-ping is executed. If this fails, an error message is sent to the console to indicate the connection to the Resource Manager (RM) has been lost. The RM is not disabled.

On each attempt to execute a transaction the same processing takes place until the connection to the RM can be re-established. If the connection to the target RM is lost and the transaction requires the target RM, then the application program should determine if action to recover the error is required, such as ABEND, rollback, or display a message to the console. If the RM is not disabled, any XA error messages are displayed in the console. When the connection is re-established a message is displayed in the console.