public void rollback ( Xid xid ) throws XAException { JDBCXAResource resource = xaDataSource . getResource ( xid ) ; if ( resource == null ) { throw new XAException ( "The XADataSource has no such Xid in prepared state: " + xid ) ; } resource . rollbackThis ( ) ; }
Per the JDBC 3 . 0 spec this rolls back the transaction for the specified Xid not necessarily for the transaction associated with this XAResource object .