4.1.3.1.3 Recovery

While the State of the TIP connection is Prepared, it is possible that the underlying transport session will fail.

If this occurs, the TIP subordinate transaction manager will establish a TIP connection to the TIP superior transaction manager as in section 4.1.1. It will then send a QUERY TIP command, specifying the superior's transaction identifier. For this example, the superior's transaction identifier is 1c7edc47-a302-4cae-8829-c0bf87d79ad7.

 Field

 Value

 Value description

TIP command

0x51 0x55 0x45 0x52 0x59

"QUERY"

SP

0x20

" "

superior's transaction identifier

0x31 0x63 0x37 0x65 0x64 0x63 0x34 0x37 0x2D 0x61 0x33 0x30 0x32 0x2D 0x34 0x63 0x61 0x65 0x2D 0x38 0x38 0x32 0x39 0x2D 0x63 0x30 0x62 0x66 0x38 0x37 0x64 0x37 0x39 0x61 0x64 0x37

"1c7edc47-a302-4cae-8829-c0bf87d79ad7"

TIP command line terminator

0x0A

LF

When the TIP superior transaction manager receives the QUERY TIP command from the TIP subordinate transaction manager, it attempts to locate the transaction in its list of transaction objects by using the superior's transaction identifier. If the TIP superior transaction manager can successfully locate the transaction object, it will respond to the TIP subordinate transaction manager with the QUERIEDEXISTS TIP command.

 Field

 Value

 Value description

TIP command

0x51 0x55 0x45 0x52 0x49 0x45 0x44 0x45 0x58 0x49 0x53 0x54 0x53

"QUERIEDEXISTS"

TIP command line terminator

0x0A

LF

The TIP superior transaction manager will then establish a TIP connection to the TIP subordinate transaction manager as in section 4.1.1. It will send a RECONNECT TIP command, specifying the subordinate's transaction identifier. For this example, the subordinate's transaction identifier is OleTx-492c3642-9c4c-4f8c-abee-7fe1083cbe2a.

 Field

 Value

 Value description

TIP command

0x52 0x45 0x43 0x4F 0x4E 0x4E 0x45 0x43 0x54

"RECONNECT"

SP

0x20

" "

subordinate's transaction identifier

0x4F 0x6C 0x65 0x54 0x78 0x2D 0x34 0x39 0x32 0x63 0x33 0x36 0x34 0x32 0x2D 0x39 0x63 0x34 0x63 0x2D 0x34 0x66 0x38 0x63 0x2D 0x61 0x62 0x65 0x65 0x2D 0x37 0x66 0x65 0x31 0x30 0x38 0x33 0x63 0x62 0x65 0x32 0x61

"OleTx-492c3642-9c4c-4f8c-abee-7fe1083cbe2a"

TIP command line terminator

0x0A

LF

When the TIP subordinate transaction manager receives the RECONNECT TIP command from the TIP superior transaction manager, it attempts to locate the transaction in its list of transaction objects by using the subordinate's transaction identifier. If the TIP subordinate transaction manager can successfully locate the transaction object, it will respond to the TIP superior transaction manager with the RECONNECTED TIP command and the transaction will become the Current transaction of the TIP connection. The State of the TIP connection changes to Prepared.

 Field

 Value

 Value description

TIP command

0x52 0x45 0x43 0x4F 0x4E 0x4E 0x45 0x43 0x54 0x45 0x44

"RECONNECTED"

TIP command line terminator

0x0A

LF