org.openejb.sfsb
Class StatefulSessionContext
java.lang.Object
org.openejb.EJBContextImpl
org.openejb.sfsb.StatefulSessionContext
- All Implemented Interfaces:
- javax.ejb.EJBContext, javax.ejb.SessionContext
- public class StatefulSessionContext
- extends EJBContextImpl
- implements javax.ejb.SessionContext
Implementation of SessionContext using the State pattern to determine
which methods can be called given the current state of the Session bean.
- Version:
- $Revision: 445265 $ $Date: 2005-03-09 06:01:02 +0100 (Wed, 09 Mar 2005) $
Constructor Summary |
StatefulSessionContext(StatefulInstanceContext context,
org.apache.geronimo.transaction.context.TransactionContextManager transactionContextManager,
org.apache.geronimo.transaction.context.UserTransactionImpl userTransaction)
|
Methods inherited from class org.openejb.EJBContextImpl |
getCallerIdentity, getCallerPrincipal, getCallerSubject, getEJBHome, getEJBLocalHome, getEJBLocalObject, getEJBObject, getEnvironment, getRollbackOnly, getTimerService, getUserTransaction, isCallerInRole, isCallerInRole, setCallerSubject, setRollbackOnly |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.ejb.SessionContext |
getEJBLocalObject, getEJBObject |
Methods inherited from interface javax.ejb.EJBContext |
getCallerIdentity, getCallerPrincipal, getEJBHome, getEJBLocalHome, getEnvironment, getRollbackOnly, getTimerService, getUserTransaction, isCallerInRole, isCallerInRole, setRollbackOnly |
INACTIVE
public static final StatefulSessionContext.StatefulSessionContextState INACTIVE
SETSESSIONCONTEXT
public static final StatefulSessionContext.StatefulSessionContextState SETSESSIONCONTEXT
EJBCREATEREMOVEACTIVATE
public static final StatefulSessionContext.StatefulSessionContextState EJBCREATEREMOVEACTIVATE
BIZ_INTERFACE
public static final StatefulSessionContext.StatefulSessionContextState BIZ_INTERFACE
StatefulSessionContext
public StatefulSessionContext(StatefulInstanceContext context,
org.apache.geronimo.transaction.context.TransactionContextManager transactionContextManager,
org.apache.geronimo.transaction.context.UserTransactionImpl userTransaction)
setTimerState
public boolean setTimerState(EJBOperation operation)
getMessageContext
public javax.xml.rpc.handler.MessageContext getMessageContext()
throws IllegalStateException
- Specified by:
getMessageContext
in interface javax.ejb.SessionContext
- Throws:
IllegalStateException
Copyright © 1999-2006 OpenEJB. All Rights Reserved.