@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, setBeanFactoryLocatorKeyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitejbActivate, ejbPassivate, ejbRemovepublic void setSessionContext(SessionContext sessionContext)
When overriding this method, be sure to invoke this form of it first.
setSessionContext in interface SessionBeanpublic final SessionContext getSessionContext()
setSessionContext(javax.ejb.SessionContext)).getSessionContext in interface SmartSessionBean