3.5.5.3.1 Receiving an XATMUSER_MTAG_ENLISTMENTOK or an XATMUSER_MTAG_E_ENLISTMENTDUPLICATE Message
When the XA Resource Manager Bridge receives a XATMUSER_MTAG_ENLISTMENTOK or a XATMUSER_MTAG_E_ENLISTMENTDUPLICATE message, it MUST perform the following actions:
If the State of the Connection is set to Awaiting Enlist Response:
Set the State of receiving Connection to Ended.
Return success to Enlist Two-Pipe XA Resource Manager event.
Otherwise the message MUST be processed as an invalid message as specified in section 3.1.6.