@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.
| Modifier and Type | Field and Description |
|---|---|
private SessionContext |
sessionContext
Deprecated.
The SessionContext passed to this EJB
|
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(SessionContext)). |
void |
setSessionContext(SessionContext sessionContext)
Deprecated.
Set the session context for this EJB.
|
ejbRemove, getBeanFactory, loadBeanFactory, onEjbRemove, setBeanFactoryLocator, setBeanFactoryLocatorKey, unloadBeanFactoryprivate SessionContext sessionContext
public void setSessionContext(SessionContext sessionContext)
When overriding this method, be sure to invoke this form of it first.
public final SessionContext getSessionContext()
setSessionContext(SessionContext)).getSessionContext in interface SmartSessionBean