CICS アプリケーションを実行するように構成されたエンタープライズ サーバー リージョンでは、ES_XA_%xaname%_OPTIONS 環境変数を設定することで、反復試行モードで動作するように XA 再接続プロセスを構成できます。
ES_XA_%xaname%_OPTIONS 環境変数で RM と待ち時間を指定すると、トランザクションの実行時に毎回 xa-ping が試行されます。失敗した場合、XA 再接続処理は xa-close、xa-open、xa-ping でループします。xa-ping で戻りコード
0 を受け取るまで、指定された期間 (秒単位) 待機してから、この処理が繰り返されます。ループの終了時に接続が再確立されていない場合、RM は無効になり、RM が無効になったことを示す重大エラーがコンソールに表示されます。
ターゲット RM を再度有効にするには、動的 XA を使用する必要があります。動的 XA は、リージョンの存続期間中に XA RM を無効にして再度有効にする機能を提供します。
- ES_XA_%xaname%_OPTIONS
- Configures the XA reconnect process to operate in a multi-attempt mode.
注: You might need to set ES_XA_%xaname%_OPTIONS multiple times — once for each RM that you require to operate in a multiple-attempt mode.
- Syntax
-
ES_XA_%xaname%_OPTIONS={reconnect_attempts,wait-time|EX}
- Parameters
-
- %xaname%
- The name of the RM as specified in MFDS or
ESCWA.
- reconnect_attempts
- The number of reconnect attempts to the target RM. Maximum is 9999.
- wait-time
- The number of seconds to delay between each attempt.
- EX
- Exclude the target RM from XA reconnect processing.
- Properties
-
- Examples
- Specify that an XA reconnect processing attempts to reconnect to MQPROD 100 times and waiting for 10 seconds between each
reconnect attempt:
ES_XA_MQPROD_OPTIONS=100,10
Specify that the XA reconnect processing is to exclude MQPROD from the XA reconnect processing:
ES_XA_MQPROD_OPTIONS=EX