|
||||||||||
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 | |
---|---|
java.security.Identity |
getCallerIdentity()
Deprecated. |
java.security.Principal |
getCallerPrincipal()
|
EJBHome |
getEJBHome()
|
EJBLocalHome |
getEJBLocalHome()
|
java.util.Properties |
getEnvironment()
Deprecated. |
boolean |
getRollbackOnly()
Check if current transaction is marked as rollback only. |
TimerService |
getTimerService()
Gets the timer service. |
javax.transaction.UserTransaction |
getUserTransaction()
Gets the current transaction. |
boolean |
isCallerInRole(java.security.Identity role)
Deprecated. |
boolean |
isCallerInRole(java.lang.String roleName)
Check if the given role is in the roles of the current caller's principal. |
java.lang.Object |
lookup(java.lang.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()
@Deprecated java.util.Properties getEnvironment()
@Deprecated java.security.Identity getCallerIdentity()
java.security.Principal getCallerPrincipal()
@Deprecated boolean isCallerInRole(java.security.Identity role)
role
- deprecated
boolean isCallerInRole(java.lang.String roleName)
roleName
- the role to check.
javax.transaction.UserTransaction getUserTransaction() throws java.lang.IllegalStateException
java.lang.IllegalStateException
- in case of Container Managed Transaction.void setRollbackOnly() throws java.lang.IllegalStateException
java.lang.IllegalStateException
- in CMT caseboolean getRollbackOnly() throws java.lang.IllegalStateException
java.lang.IllegalStateException
- if used with CMT.TimerService getTimerService() throws java.lang.IllegalStateException
java.lang.IllegalStateException
- if used within a SFSB.java.lang.Object lookup(java.lang.String name)
name
- the name to search
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |