3.4.5.3.5.1 Receiving a TXUSER_TRACE_MTAG_DUMP_TRANSACTION Message
When the transaction manager communicating with an application facet receives a TXUSER_TRACE_MTAG_DUMP_TRANSACTION message, the transaction manager communicating with an application facet MUST perform the following actions:
If the connection state is Idle:
Set the connection state to Processing Trace Request.
Find the transaction object in the transaction table of the transaction manager by using the guidTx field from the message as the key.
If the transaction object is not found in the list, the transaction manager MUST:
Send a TXUSER_TRACE_MTAG_TX_NOT_FOUND message using the connection.
Otherwise:
Attempt to generate trace records for the transaction in the trace file of the transaction manager in an implementation-specific manner.
If the operation fails:
Send a TXUSER_TRACE_MTAG_REQUEST_FAILED message using the connection.
Otherwise:
Send a TXUSER_TRACE_MTAG_REQUEST_COMPLETE message using the connection.
Set the connection state to Ended.
Otherwise, the message MUST be processed as an invalid message as specified in section 3.1.6.