javax.ejb
Interface SessionContext

All Superinterfaces:
EJBContext
All Known Implementing Classes:
AbstractSessionContext, StatefulContext, StatelessContext

public interface SessionContext
extends EJBContext

The main ejb context.


Method Summary
<T> T
getBusinessObject(java.lang.Class<T> businessInterface)
           
 EJBLocalObject getEJBLocalObject()
           
 EJBObject getEJBObject()
           
 java.lang.Class getInvokedBusinessInterface()
           
 
Methods inherited from interface javax.ejb.EJBContext
getCallerIdentity, getCallerPrincipal, getEJBHome, getEJBLocalHome, getEnvironment, getRollbackOnly, getTimerService, getUserTransaction, isCallerInRole, isCallerInRole, lookup, setRollbackOnly
 

Method Detail

getBusinessObject

<T> T getBusinessObject(java.lang.Class<T> businessInterface)
                    throws java.lang.IllegalStateException
Throws:
java.lang.IllegalStateException

getEJBLocalObject

EJBLocalObject getEJBLocalObject()
                                 throws java.lang.IllegalStateException
Throws:
java.lang.IllegalStateException

getEJBObject

EJBObject getEJBObject()
                       throws java.lang.IllegalStateException
Throws:
java.lang.IllegalStateException

getInvokedBusinessInterface

java.lang.Class getInvokedBusinessInterface()
                                            throws java.lang.IllegalStateException
Throws:
java.lang.IllegalStateException