javax.ejb

Interface EJBContext

Known Subinterfaces:
EntityContext, MessageDrivenContext, SessionContext

public interface EJBContext

The main ejb context.

Method Summary

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

Method Details

getCallerIdentity

public Identity getCallerIdentity()

getCallerPrincipal

public Principal getCallerPrincipal()

getEJBHome

public EJBHome getEJBHome()

getEJBLocalHome

public EJBLocalHome getEJBLocalHome()

getEnvironment

public Properties getEnvironment()

getRollbackOnly

public boolean getRollbackOnly()
            throws IllegalStateException

getTimerService

public TimerService getTimerService()
            throws IllegalStateException

getUserTransaction

public UserTransaction getUserTransaction()
            throws IllegalStateException

isCallerInRole

public boolean isCallerInRole(String roleName)
Usages and Demos :

View More Examples of isCallerInRole(String roleName)
   1: 
   2: import javax.ejb.EJBContext;
   3: import javax.ejb.EJBHome;
   4:         ...
   5: 
   6:     protected EJBContext m_ejbContext;
   7: 
   8:         ...
   9:     public final EJBContext getEJBContext() {
  10: 
  11:         ...
  12: 
  13:             throw new java.lang.UnsupportedOperationException("Class java.security.Identity and method EJBContext.isCallerInRole(Identity) have been deprecated.");

View Full Code Here

isCallerInRole

public boolean isCallerInRole(Identity role)
Usages and Demos :

View More Examples of isCallerInRole(Identity role)
   1: 
   2: import javax.ejb.EJBContext;
   3: import javax.ejb.EJBHome;
   4:         ...
   5: 
   6:     protected EJBContext m_ejbContext;
   7: 
   8:         ...
   9:     public final EJBContext getEJBContext() {
  10: 
  11:         ...
  12: 
  13:             throw new java.lang.UnsupportedOperationException("Class java.security.Identity and method EJBContext.isCallerInRole(Identity) have been deprecated.");

View Full Code Here

lookup

public Object lookup(String name)

setRollbackOnly

public void setRollbackOnly()
            throws IllegalStateException