3.5.4.2 Unregister Two-Pipe XA Resource Manager

This event MUST be signaled by the higher-layer business logic with the following arguments:

If the Unregister Two-Pipe XA Resource Manager event is signaled, the XA Resource Manager Bridge MUST perform the following actions:

  • Attempt to find an XA Resource Manager Proxy object in the Two-Pipe XA Resource Manager Proxy Table referenced by the XA Resource Manager Bridge keyed by the provided Resource Manager Cookie.

  • If an object is found:

    • Remove the XA Resource Manager Proxy object from the Two-Pipe XA Resource Manager Proxy Table maintained by the XA Resource Manager Bridge.

    • If the State of Connection referenced by the Request Connection field of the XA Resource Manager Proxy is set to Active:

      • Signal the Disconnect Connection event using the connection referenced by the Request Connection field of the found XA Resource Manager Proxy object as the argument.

  • Otherwise:

    • Return Failure.