public interface

SmartSessionBean

implements SessionBean
org.springframework.ejb.support.SmartSessionBean
Known Indirect Subclasses

Class Overview

Interface to be implemented by Session Beans that want to expose important state to cooperating classes.

Implemented by Spring's AbstractSessionBean class and hence by all of Spring's specific Session Bean support classes, such as AbstractStatelessSessionBean and AbstractStatefulSessionBean.

Summary

Public Methods
abstract SessionContext getSessionContext()
Return the SessionContext that was passed to the Session Bean by the EJB container.
[Expand]
Inherited Methods
From interface javax.ejb.SessionBean

Public Methods

public abstract SessionContext getSessionContext ()

Return the SessionContext that was passed to the Session Bean by the EJB container. Can be used by cooperating infrastructure code to get access to the user credentials, for example.