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.
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