CICS の単一モードでの再接続

単一試行モードで動作するように XA 再接続プロセスを構成するには、ES_XA_RECONNECT 環境変数を設定します。

この構成では、トランザクションの実行時に毎回 xa-ping が試行されます。これに失敗すると xa-close と xa-open に続いて xa-ping が再実行されます。これにも失敗すると、リソース マネージャー (RM) への接続が失われたことを示すエラー メッセージがコンソールに送られます。RM は無効になりません。

RM への接続が再確立されるまで、トランザクションの実行を試行するたびに同じ処理が行われます。ターゲット RM への接続が失われ、トランザクションでターゲット RM が必要な場合、アプリケーション プログラムは、ABEND、ロールバック、コンソールへのメッセージの表示など、エラーを回復するためのアクションが必要かどうかを判断します。RM が無効になっていなければ、すべての XA エラー メッセージがコンソールに表示されます。接続が再確立されると、コンソールにメッセージが表示されます。

ES_XA_RECONNECT
Configures the XA reconnect process to operate in a single-attempt mode
Syntax
Windows:
ES_XA_RECONNECT=Y,wait-time[,retry_count]
UNIX:
ES_XA_RECONNECT=Y,wait-time[,retry_count]
export ES_XA_RECONNECT
Parameters
Y
Enables the reconnect process.
wait-time
The number of seconds to delay before triggering the XA recovery transaction after a two-phase commit failure and between each reschedule of the XA recovery transaction if the syncpoint phase 2 returns an RC 04. Maximum is 300.
retry_count
The number of recovery retries to attempt when the XA commit or rollback executed by the XA recovery transaction returns an RC-04. Default is 5.
Properties
Default: None
Comments
In case of failure, the following messages are sent to the console:
CASXO0054W XA recovery error RC=4 on commit in-doubt transaction RM: RM01 RC:  00004 XID: MF_CAS  DEMOMYREG           000000***********000010000000**        0000

When the maximum number of retries is reached, the following message is sent to the console:

CASXO0055S XA MAX recovery attempts, manually commit in-doubt transaction RM: RM01 RC:  00004 XID: MF_CAS  DEMOMYREG       000000***********000010000000**        0000
Example
ES_XA_RECONNECT=Y,120,4