3.4.5.2.2 Receiving an XATMUSER_MTAG_RMCLOSE Message

When the XA Resource Manager Bridge Facet receives a XATMUSER_MTAG_RMCLOSE message (section 2.2.3.3.7), it MUST perform the following actions:

  • If the State field of receiving Connection is set to Active:

    • Set the State field of the receiving Connection to Processing Close Request:

    • Attempt to delete the XA Resource Manager object referenced by the XA Resource Manager CMP Connection from the XA Resource Manager Durable Log.

    • If the delete is successful:

      • Send an XATMUSER_MTAG_RMCLOSEOK message (section 2.2.3.3.8) using the receiving connection.

    • Otherwise:

      • Send XATMUSER_MTAG_E_RMCLOSEFAILED (section 2.2.3.3.2) to all connections in Request Connections Table of XA Resource Manager.

    • Set State of receiving connection to Ended.