org.apache.openejb.core.stateful
Class SessionSynchronizationCoordinator

java.lang.Object
  extended by org.apache.openejb.core.stateful.SessionSynchronizationCoordinator
All Implemented Interfaces:
Synchronization

public class SessionSynchronizationCoordinator
extends Object
implements Synchronization


Method Summary
 void afterCompletion(int status)
           
 void beforeCompletion()
           
protected  void discardInstance(StatefulInstanceManager instanceManager, ThreadContext callContext)
           
protected  TransactionManager getTransactionManager()
           
protected  int getTransactionStatus()
           
protected  void markTxRollbackOnly(Transaction tx)
           
static void registerSessionSynchronization(StatefulInstanceManager.Instance instance, TransactionContext context)
           
protected  void throwExceptionToServer(Throwable sysException)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

registerSessionSynchronization

public static void registerSessionSynchronization(StatefulInstanceManager.Instance instance,
                                                  TransactionContext context)
                                           throws SystemException,
                                                  RollbackException
Throws:
SystemException
RollbackException

beforeCompletion

public void beforeCompletion()
Specified by:
beforeCompletion in interface Synchronization

afterCompletion

public void afterCompletion(int status)
Specified by:
afterCompletion in interface Synchronization

discardInstance

protected void discardInstance(StatefulInstanceManager instanceManager,
                               ThreadContext callContext)

markTxRollbackOnly

protected void markTxRollbackOnly(Transaction tx)
                           throws SystemException
Throws:
SystemException

getTransactionManager

protected TransactionManager getTransactionManager()

throwExceptionToServer

protected void throwExceptionToServer(Throwable sysException)
                               throws ApplicationException
Throws:
ApplicationException

getTransactionStatus

protected int getTransactionStatus()


Copyright © 1999-2011 The Apache OpenEJB development community. All Rights Reserved.