com.sun.xml.ws.tx.common
Class ATTransactionManagerImpl

java.lang.Object
  extended by com.sun.xml.ws.tx.common.ATTransactionManagerImpl
All Implemented Interfaces:
javax.transaction.TransactionManager

public class ATTransactionManagerImpl
extends java.lang.Object
implements javax.transaction.TransactionManager

Inject WS-Coordination/WS-AtomicTransaction support into JTA 1.1 TransactionManager and TransactionSynchronizationRegistry.


Method Summary
 void begin()
           
 void commit()
           
 CoordinationContextInterface getCoordinationContext()
          Get the coordination context associated with the current transaction.
static ATTransactionManagerImpl getInstance()
           
 int getStatus()
           
 javax.transaction.Transaction getTransaction()
           
 ATTransaction getTransaction(java.lang.String coordId)
           
 void resume(javax.transaction.Transaction transaction)
           
 void rollback()
           
 void setCoordinationContext(CoordinationContextInterface coordinationCtx)
          Set the coordination context associated with the current transaction.
 void setRollbackOnly()
           
 void setTransactionTimeout(int seconds)
           
 javax.transaction.Transaction suspend()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ATTransactionManagerImpl getInstance()

getTransaction

public ATTransaction getTransaction(java.lang.String coordId)

begin

public void begin()
           throws javax.transaction.NotSupportedException,
                  javax.transaction.SystemException
Specified by:
begin in interface javax.transaction.TransactionManager
Throws:
javax.transaction.NotSupportedException
javax.transaction.SystemException

commit

public void commit()
            throws javax.transaction.RollbackException,
                   javax.transaction.HeuristicMixedException,
                   javax.transaction.HeuristicRollbackException,
                   java.lang.SecurityException,
                   java.lang.IllegalStateException,
                   javax.transaction.SystemException
Specified by:
commit in interface javax.transaction.TransactionManager
Throws:
javax.transaction.RollbackException
javax.transaction.HeuristicMixedException
javax.transaction.HeuristicRollbackException
java.lang.SecurityException
java.lang.IllegalStateException
javax.transaction.SystemException

getStatus

public int getStatus()
              throws javax.transaction.SystemException
Specified by:
getStatus in interface javax.transaction.TransactionManager
Throws:
javax.transaction.SystemException

getTransaction

public javax.transaction.Transaction getTransaction()
                                             throws javax.transaction.SystemException
Specified by:
getTransaction in interface javax.transaction.TransactionManager
Throws:
javax.transaction.SystemException

resume

public void resume(javax.transaction.Transaction transaction)
            throws javax.transaction.InvalidTransactionException,
                   java.lang.IllegalStateException,
                   javax.transaction.SystemException
Specified by:
resume in interface javax.transaction.TransactionManager
Throws:
javax.transaction.InvalidTransactionException
java.lang.IllegalStateException
javax.transaction.SystemException

rollback

public void rollback()
              throws java.lang.IllegalStateException,
                     java.lang.SecurityException,
                     javax.transaction.SystemException
Specified by:
rollback in interface javax.transaction.TransactionManager
Throws:
java.lang.IllegalStateException
java.lang.SecurityException
javax.transaction.SystemException

setRollbackOnly

public void setRollbackOnly()
                     throws java.lang.IllegalStateException
Specified by:
setRollbackOnly in interface javax.transaction.TransactionManager
Throws:
java.lang.IllegalStateException

setTransactionTimeout

public void setTransactionTimeout(int seconds)
                           throws javax.transaction.SystemException
Specified by:
setTransactionTimeout in interface javax.transaction.TransactionManager
Throws:
javax.transaction.SystemException

suspend

public javax.transaction.Transaction suspend()
                                      throws javax.transaction.SystemException
Specified by:
suspend in interface javax.transaction.TransactionManager
Throws:
javax.transaction.SystemException

getCoordinationContext

public CoordinationContextInterface getCoordinationContext()
Get the coordination context associated with the current transaction.

Returns null if none set.


setCoordinationContext

public void setCoordinationContext(CoordinationContextInterface coordinationCtx)
Set the coordination context associated with the current transaction.