com.sun.xml.ws.api.tx
Interface ATTransaction

All Superinterfaces:
javax.transaction.Transaction
All Known Implementing Classes:
ATTransactionImpl

public interface ATTransaction
extends javax.transaction.Transaction

WS-AT Transaction abstraction to enable the enlistment of volatile and durable Partipants.

How to get an ATTransaction. @Resource(name="java:/comp/wsatTxnMgr", type=javax.transaction.TransactionManager.class ) javax.transaction.TransactionManager wsatTxnMgr;

//In the scope of a wsat transaction, perform the following: ATTransaction atTxn = (ATTransaction)wsatTxnMgr.getTransaction();

See Also:
Participant

Method Summary
 boolean enlistParticipant(Participant participant)
          Enlist a participant with current WS-AT transaction context.
 
Methods inherited from interface javax.transaction.Transaction
commit, delistResource, enlistResource, getStatus, registerSynchronization, rollback, setRollbackOnly
 

Method Detail

enlistParticipant

boolean enlistParticipant(Participant participant)
Enlist a participant with current WS-AT transaction context.

Returns:
true if the participant was enlisted successfully; otherwise false.