@Deprecated public abstract class AbstractSessionBean extends AbstractEnterpriseBean implements SmartSessionBean
AbstractStatelessSessionBean
or
AbstractStatefulSessionBean
instead.
This class saves the session context provided by the EJB container in an
instance variable and exposes it through the SmartSessionBean
interface.
BEAN_FACTORY_PATH_ENVIRONMENT_KEY
Constructor and Description |
---|
AbstractSessionBean()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
SessionContext |
getSessionContext()
Deprecated.
Convenience method for subclasses, returning the EJB session context
saved on initialization (
setSessionContext(javax.ejb.SessionContext) ). |
void |
setSessionContext(SessionContext sessionContext)
Deprecated.
Set the session context for this EJB.
|
ejbRemove, getBeanFactory, onEjbRemove, setBeanFactoryLocator, setBeanFactoryLocatorKey
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
ejbActivate, ejbPassivate, ejbRemove
public void setSessionContext(SessionContext sessionContext)
When overriding this method, be sure to invoke this form of it first.
setSessionContext
in interface SessionBean
public final SessionContext getSessionContext()
setSessionContext(javax.ejb.SessionContext)
).getSessionContext
in interface SmartSessionBean