3.4.5.1.2 Connection Disconnected
When a CONNTYPE_ XATM_OPEN connection is disconnected, the XA Resource Manager Bridge Facet MUST perform the following actions:
If the State of receiving connection is set to Active and the State field of the XA Resource Manager object referenced by the XA Resource Manager CMP Connection object is set to Active:
Set the State of receiving connection to Ended.
Decrement the Call Count field of the XA Resource Manager object referenced by the XA Resource Manager CMP Connection object.
Remove the receiving connection from Request Connections Table referenced by XA Resource Manager object referenced by the XA Resource Manager CMP Connection object.
If the Call Count field of the XA Resource Manager object referenced by the XA Resource Manager CMP Connection object is set to 0:
Call xa_close function on XA Switch of XA Resource Manager object with the following arguments:
The Data Source Name field of the XA Resource Manager object referenced by the XA Resource Manager CMP Connection object.
The XA Resource Manager Identifier of the XA Resource Manager object referenced by the XA Resource Manager CMP Connection object.
TMNOFLAGS.
Set the State field of the XA Resource Manager object referenced by the XA Resource Manager CMP Connection object to Ended.
If the XA Subordinate Enlistment Table referenced by the XA Resource Manager object referenced by the XA Resource Manager CMP Connection object is empty:
Remove the XA Resource Manager object referenced by the XA Resource Manager CMP Connection object from the XA Resource Manager Durable Log.
Remove the XA Resource Manager referenced by the XA Resource Manager CMP Connection object from the XA Resource Manager Table.