com.stellent.cis.client.command.ejb
Class CommandStatelessSessionBean
java.lang.Object
org.springframework.ejb.support.AbstractStatelessSessionBean
com.stellent.cis.client.command.ejb.CommandStatelessSessionBean
- All Implemented Interfaces:
- java.io.Serializable, javax.ejb.EnterpriseBean, javax.ejb.SessionBean
- Direct Known Subclasses:
- CommandConfigurationBean, CommandInvokerBean
public abstract class CommandStatelessSessionBean
- extends org.springframework.ejb.support.AbstractStatelessSessionBean
- implements javax.ejb.SessionBean
- See Also:
- Serialized Form
Fields inherited from class org.springframework.ejb.support.AbstractStatelessSessionBean |
logger |
Methods inherited from class org.springframework.ejb.support.AbstractStatelessSessionBean |
ejbActivate, ejbPassivate, onEjbCreate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.ejb.SessionBean |
ejbActivate, ejbPassivate, ejbRemove, setSessionContext |
BEAN_FACTORY_PATH_ENVIRONMENT_KEY
public static final java.lang.String BEAN_FACTORY_PATH_ENVIRONMENT_KEY
- See Also:
- Constant Field Values
CommandStatelessSessionBean
public CommandStatelessSessionBean()
ejbCreate
public void ejbCreate()
throws javax.ejb.CreateException
- This implementation loads the BeanFactory. A BeansException thrown by
loadBeanFactory will simply get propagated, as it is a runtime exception.
Don't override it (although it can't be made final): code your own
initialization in onEjbCreate(), which is called when the BeanFactory
is available.
Unfortunately we can't load the BeanFactory in setSessionContext(),
as resource manager access isn't permitted there - but the BeanFactory
may require it.
- Overrides:
ejbCreate
in class org.springframework.ejb.support.AbstractStatelessSessionBean
- Throws:
javax.ejb.CreateException
setSessionContext
public void setSessionContext(javax.ejb.SessionContext arg0)
- Specified by:
setSessionContext
in interface javax.ejb.SessionBean
getSessionContext
protected final javax.ejb.SessionContext getSessionContext()
setBeanFactoryLocator
public void setBeanFactoryLocator(org.springframework.beans.factory.access.BeanFactoryLocator arg0)
setBeanFactoryLocatorKey
public void setBeanFactoryLocatorKey(java.lang.String arg0)
getBeanFactory
protected org.springframework.beans.factory.BeanFactory getBeanFactory()
ejbRemove
public void ejbRemove()
onEjbRemove
protected void onEjbRemove()