javax.ejb
Interface SessionContext

All Superinterfaces:
EJBContext
All Known Implementing Classes:
AbstractSessionContext, SingletonContext, 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()
           
 MessageContext getMessageContext()
           
 boolean wasCancelCalled()
           
 
Methods inherited from interface javax.ejb.EJBContext
getCallerIdentity, getCallerPrincipal, getContextData, 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

getMessageContext

MessageContext getMessageContext()
                                 throws java.lang.IllegalStateException
Throws:
java.lang.IllegalStateException

wasCancelCalled

boolean wasCancelCalled()
                        throws java.lang.IllegalStateException
Throws:
java.lang.IllegalStateException