org.jboss.tm
Interface JBossXATerminator

All Superinterfaces:
XATerminator (src)
All Known Implementing Classes:
TxManager (src)

public interface JBossXATerminator
extends XATerminator (src)

Extends XATerminator to include registration calls


Method Summary
 void cancelWork(Work (src)  work, Xid (src)  xid)
          Invoked when the work fails
 void endWork(Work (src)  work, Xid (src)  xid)
          Invoked when transaction inflow work ends
 void registerWork(Work (src)  work, Xid (src)  xid, long timeout)
          Invoked for transaction inflow of work
 void startWork(Work (src)  work, Xid (src)  xid)
          Invoked for transaction inflow of work
 
Methods inherited from interface javax.resource.spi.XATerminator (src)
commit, forget, prepare, recover, rollback
 

Method Detail

registerWork

public void registerWork(Work (src)  work,
                         Xid (src)  xid,
                         long timeout)
                  throws WorkCompletedException (src) 
Invoked for transaction inflow of work

Parameters:
work - the work starting
xid - the xid of the work
timeout - the transaction timeout
Throws:
WorkCompletedException (src) - with error code WorkException.TX_CONCURRENT_WORK_DISALLOWED when work is already present for the xid or whose completion is in progress, only the global part of the xid must be used for this check.

startWork

public void startWork(Work (src)  work,
                      Xid (src)  xid)
               throws WorkCompletedException (src) 
Invoked for transaction inflow of work

Parameters:
work - the work starting
xid - the xid of the work
Throws:
WorkCompletedException (src) - with error code WorkException.TX_RECREATE_FAILED if it is unable to recreate the transaction context

endWork

public void endWork(Work (src)  work,
                    Xid (src)  xid)
Invoked when transaction inflow work ends

Parameters:
work - the work ending
xid - the xid of the work

cancelWork

public void cancelWork(Work (src)  work,
                       Xid (src)  xid)
Invoked when the work fails

Parameters:
work - the work ending
xid - the xid of the work