javax.resource.spi
Interface XATerminator


public interface XATerminator

Facilities made available by the application server to the resource.


Method Summary
 void commit(Xid xid, boolean onePhase)
          Commits a transaction.
 void forget(Xid xid)
          Forgets a heuristic transaction.
 int prepare(Xid xid)
          Prepares a transaction.
 Xid[] recover(int flag)
          Returns the prepared transaction branches.
 void rollback(Xid xid)
          Rolls back a transaction.
 

Method Detail

prepare

int prepare(Xid xid)
            throws XAException
Prepares a transaction.

Throws:
XAException

commit

void commit(Xid xid,
            boolean onePhase)
            throws XAException
Commits a transaction.

Throws:
XAException

rollback

void rollback(Xid xid)
              throws XAException
Rolls back a transaction.

Throws:
XAException

forget

void forget(Xid xid)
            throws XAException
Forgets a heuristic transaction.

Throws:
XAException

recover

Xid[] recover(int flag)
              throws XAException
Returns the prepared transaction branches.

Throws:
XAException