public abstract class

AbstractSessionBean

extends AbstractEnterpriseBean
implements SmartSessionBean
java.lang.Object
   ↳ org.springframework.ejb.support.AbstractEnterpriseBean
     ↳ org.springframework.ejb.support.AbstractSessionBean
Known Direct Subclasses

Class Overview

Base class for Spring-based EJB 2.x session beans. Not intended for direct subclassing: Extend 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.

Summary

[Expand]
Inherited Constants
From class org.springframework.ejb.support.AbstractEnterpriseBean
Public Constructors
AbstractSessionBean()
Public Methods
final SessionContext getSessionContext()
Convenience method for subclasses, returning the EJB session context saved on initialization (setSessionContext(SessionContext)).
void setSessionContext(SessionContext sessionContext)
Set the session context for this EJB.
[Expand]
Inherited Methods
From class org.springframework.ejb.support.AbstractEnterpriseBean
From class java.lang.Object
From interface javax.ejb.SessionBean
From interface org.springframework.ejb.support.SmartSessionBean

Public Constructors

public AbstractSessionBean ()

Public Methods

public final SessionContext getSessionContext ()

Convenience method for subclasses, returning the EJB session context saved on initialization (setSessionContext(SessionContext)).

public void setSessionContext (SessionContext sessionContext)

Set the session context for this EJB.

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