javax.ejb
Interface EJBContext

All Known Subinterfaces:
EntityContext, MessageDrivenContext, SessionContext
All Known Implementing Classes:
AbstractContext, AbstractSessionContext, MessageDrivenContextImpl, SingletonContext, StatefulContext, StatelessContext

public interface EJBContext

The main ejb context.


Method Summary
 java.security.Identity getCallerIdentity()
           
 java.security.Principal getCallerPrincipal()
           
 java.util.Map<java.lang.String,java.lang.Object> getContextData()
           
 EJBHome getEJBHome()
           
 EJBLocalHome getEJBLocalHome()
           
 java.util.Properties getEnvironment()
           
 boolean getRollbackOnly()
           
 TimerService getTimerService()
           
 UserTransaction getUserTransaction()
           
 boolean isCallerInRole(java.security.Identity role)
           
 boolean isCallerInRole(java.lang.String roleName)
           
 java.lang.Object lookup(java.lang.String name)
           
 void setRollbackOnly()
           
 

Method Detail

getCallerIdentity

java.security.Identity getCallerIdentity()

getCallerPrincipal

java.security.Principal getCallerPrincipal()

getContextData

java.util.Map<java.lang.String,java.lang.Object> getContextData()

getEJBHome

EJBHome getEJBHome()

getEJBLocalHome

EJBLocalHome getEJBLocalHome()

getEnvironment

java.util.Properties getEnvironment()

getUserTransaction

UserTransaction getUserTransaction()
                                   throws java.lang.IllegalStateException
Throws:
java.lang.IllegalStateException

getRollbackOnly

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

setRollbackOnly

void setRollbackOnly()
                     throws java.lang.IllegalStateException
Throws:
java.lang.IllegalStateException

isCallerInRole

boolean isCallerInRole(java.security.Identity role)

isCallerInRole

boolean isCallerInRole(java.lang.String roleName)

lookup

java.lang.Object lookup(java.lang.String name)

getTimerService

TimerService getTimerService()
                             throws java.lang.IllegalStateException
Throws:
java.lang.IllegalStateException