4.1.1 Creating the TIP Connection

A TIP connection can be created by any TIP role that can be a primary:

This TIP command sequence is initiated by starting a TIP connection on a transport session between a Primary and a Secondary. The TIP connection starts in the Initial State.

The TIP command sequence starts when the Primary creates the transport session to the Secondary, then starts the TIP connection by sending an IDENTIFY TIP command, specifying lowest protocol version, highest protocol version, primary transaction manager address, and secondary transaction manager address. For this example, the Primary specifies that the lowest protocol version is 3 and the highest protocol version is 3, that the primary transaction manager address is primary-tm.fabrikam.com:8086/TipTM/ and that the secondary transaction manager address is secondary-tm.fabrikam.com:3372/.

 Field

 Value

Value description

TIP Command

0x49 0x44 0x45 0x4E 0x54 0x49 0x46 0x59

"IDENTIFY"

SP

0x20

" "

lowest protocol version

0x33

"3"

SP

0x20

" "

highest protocol version

0x33

"3"

SP

0x20

" "

primary transaction manager address

0x70 0x72 0x69 0x6D 0x61 0x72 0x79 0x2D 0x74 0x6D 0x2E 0x66 0x61 0x62 0x72 0x69 0x6B 0x61 0x6D 0x2E 0x63 0x6F 0x6D 0x3A 0x38 0x30 0x38 0x36 0x2F 0x54 0x69 0x70 0x54 0x4D 0x2F

"primary-tm.fabrikam.com:8086/TipTM/"

SP

0x20

" "

secondary transaction manager address

0x73 0x65 0x63 0x6F 0x6E 0x64 0x61 0x72 0x79 0x2D 0x74 0x6D 0x2E 0x66 0x61 0x62 0x72 0x69 0x6B 0x61 0x6D 0x2E 0x63 0x6F 0x6D 0x3A 0x33 0x33 0x37 0x32 0x2F

"secondary-tm.fabrikam.com:3372/"

TIP Command Line terminator

0x0A

LF

When the Secondary receives the IDENTIFY TIP command from the Primary, it finds the high protocol version supported by both itself and the Primary. If such a protocol version exists, it sends an IDENTIFIED TIP command to the Primary transaction manager specifying the protocol version (for this example, 3), and the State of the TIP connection changes to Idle.

 Field

 Value

 Value description

TIP Command

0x49 0x44 0x45 0x4E 0x54 0x49 0x46 0x49 0x45 0x44

"IDENTIFIED"

SP

0x20

" "

protocol version

0x33

"3"

TIP Command Line terminator

0x0A

LF