javax.ejb

Interface EJBContext

Known Subinterfaces:
EntityContext, MessageDrivenContext, SessionContext

public interface EJBContext

Method Summary

Identity
getCallerIdentity()
Deprecated.
Principal
getCallerPrincipal()
EJBHome
getEJBHome()
EJBLocalHome
getEJBLocalHome()
Properties
getEnvironment()
Deprecated.
boolean
getRollbackOnly()
TimerService
getTimerService()
UserTransaction
getUserTransaction()
boolean
isCallerInRole(Identity role)
Deprecated.
boolean
isCallerInRole(String roleName)
void
setRollbackOnly()

Method Details

getCallerIdentity

public Identity getCallerIdentity()

Deprecated.


getCallerPrincipal

public Principal getCallerPrincipal()

getEJBHome

public EJBHome getEJBHome()

getEJBLocalHome

public EJBLocalHome getEJBLocalHome()

getEnvironment

public Properties getEnvironment()

Deprecated.


getRollbackOnly

public boolean getRollbackOnly()
            throws IllegalStateException

getTimerService

public TimerService getTimerService()
            throws IllegalStateException

getUserTransaction

public UserTransaction getUserTransaction()
            throws IllegalStateException

isCallerInRole

public boolean isCallerInRole(Identity role)

Deprecated.


isCallerInRole

public boolean isCallerInRole(String roleName)

setRollbackOnly

public void setRollbackOnly()
            throws IllegalStateException