javax.resource.spi
Interface XATerminator


public interface XATerminator

Transaction completion and crash recovery


Method Summary
 void commit(Xid xid, boolean onePhase)
          Commit the transaction
 void forget(Xid xid)
          Forget the transaction
 int prepare(Xid xid)
          Prepare the transaction
 Xid[] recover(int flag)
          Retrieve xids that are recoverable
 void rollback(Xid xid)
          Rollback the transaction
 

Method Detail

commit

void commit(Xid xid,
            boolean onePhase)
            throws XAException
Commit the transaction

Parameters:
xid - the xid
onePhase - true for one phase commit, false for two phase
Throws:
XAException - for an error

forget

void forget(Xid xid)
            throws XAException
Forget the transaction

Parameters:
xid - the xid
Throws:
XAException - for an error

prepare

int prepare(Xid xid)
            throws XAException
Prepare the transaction

Parameters:
xid - the xid
Returns:
Either XA_RDONLY or XA_OK
Throws:
XAException - for an error

rollback

void rollback(Xid xid)
              throws XAException
Rollback the transaction

Parameters:
xid - the xid
Throws:
XAException - for an error

recover

Xid[] recover(int flag)
              throws XAException
Retrieve xids that are recoverable

Parameters:
flag - the recovery option
Throws:
XAException - for an error


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.