public void close(Xid xid) throws XAException {
    synchronized (cpoXaStateMap) {
      CpoXaState<T> cpoXaState = cpoXaStateMap.getXidStateMap().get(xid);

      if (cpoXaState == null)
        throw CpoXaError.createXAException(CpoXaError.XAER_NOTA, "Unknown XID");

      // close the resource
      closeResource(cpoXaState.getResource());

      // unassociate
      cpoXaStateMap.getXaResourceMap().remove(cpoXaState.getAssignedResourceManager());

      // remove the xid reference
      cpoXaStateMap.getXidStateMap().remove(xid);
    }
  }
public void close ( Xid xid ) throws XAException { synchronized ( cpoXaStateMap ) { CpoXaState < T > cpoXaState = cpoXaStateMap . getXidStateMap ( ) . get ( xid ) ; if ( cpoXaState == null ) throw CpoXaError . createXAException ( CpoXaError . XAER_NOTA , "Unknown XID" ) ; closeResource ( cpoXaState . getResource ( ) ) ; cpoXaStateMap . getXaResourceMap ( ) . remove ( cpoXaState . getAssignedResourceManager ( ) ) ; cpoXaStateMap . getXidStateMap ( ) . remove ( xid ) ; } }
Closes the resource for the specified xid

@param xid of the global transaction
@throws XAException