|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface EJBContext
Allows to gets some info on the bean.
| Method Summary | |
|---|---|
Identity |
getCallerIdentity()
Deprecated. |
Principal |
getCallerPrincipal()
|
EJBHome |
getEJBHome()
|
EJBLocalHome |
getEJBLocalHome()
|
Properties |
getEnvironment()
Deprecated. |
boolean |
getRollbackOnly()
Check if current transaction is marked as rollback only. |
TimerService |
getTimerService()
Gets the timer service. |
UserTransaction |
getUserTransaction()
Gets the current transaction. |
boolean |
isCallerInRole(Identity role)
|
boolean |
isCallerInRole(String roleName)
Check if the given role is in the roles of the current caller's principal. |
Object |
lookup(String name)
Search the given name in java:comp/env ENC environment. |
void |
setRollbackOnly()
Sets the current transaction in rollback only mode. |
| Method Detail |
|---|
EJBHome getEJBHome()
EJBLocalHome getEJBLocalHome()
Properties getEnvironment()
Identity getCallerIdentity()
Principal getCallerPrincipal()
boolean isCallerInRole(Identity role)
role - deprecated
boolean isCallerInRole(String roleName)
roleName - the role to check.
UserTransaction getUserTransaction()
throws IllegalStateException
IllegalStateException - in case of Container Managed Transaction.
void setRollbackOnly()
throws IllegalStateException
IllegalStateException - in CMT case
boolean getRollbackOnly()
throws IllegalStateException
IllegalStateException - if used with CMT.
TimerService getTimerService()
throws IllegalStateException
IllegalStateException - if used within a SFSB.Object lookup(String name)
name - the name to search
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||