org.springframework.ejb.support
Class AbstractSessionBean

org.springframework.ejb.support.AbstractEnterpriseBean
  |
  +--org.springframework.ejb.support.AbstractSessionBean
Direct Known Subclasses:
AbstractStatefulSessionBean, AbstractStatelessSessionBean

abstract class AbstractSessionBean
extends AbstractEnterpriseBean
implements SessionBean

Superclass for all session beans, not intended for direct client subclassing.

This class saves the session context provided by the EJB container in an instance variable and provides a NOP implementation of the ejbRemove() lifecycle method.

Author:
Rod Johnson
Version: $Id: AbstractSessionBean.java,v 1.2 2003/11/14 20:16:07 colins Exp $

Fields inherited from class org.springframework.ejb.support.AbstractEnterpriseBean
BEAN_FACTORY_PATH_ENVIRONMENT_KEY

Method Summary
 voidsetSessionContext(SessionContext sessionContext)
          Sets the session context.

Methods inherited from class org.springframework.ejb.support.AbstractEnterpriseBean
ejbRemove, loadBeanFactory, setBeanFactoryLocator, setBeanFactoryLocatorKey, unloadBeanFactory

Method Detail

setSessionContext

public void setSessionContext(SessionContext sessionContext)
Sets the session context.

If overriding this method, be sure to invoke this form of it first.

Parameters:
sessionContext - SessionContext context for session

Association Links

to Class javax.ejb.SessionContext

the SessionContext passed to this object