Method Summary |
|
public Identity | getCallerIdentity() Deprecated. Use Principal getCallerPrincipal() instead.
Obtain the java.security.Identity of the caller. |
public Principal | getCallerPrincipal() Obtains the java.security.Principal of the caller.
The Principal object that identifies the caller. |
public EJBHome | getEJBHome() Obtain the enterprise bean's remote home interface. |
public EJBLocalHome | getEJBLocalHome() Obtain the enterprise bean's local home interface. |
public Properties | getEnvironment() Deprecated. Use the JNDI naming context java:comp/env to access enterprise bean's environment.
Obtain the enterprise bean's environment properties.
Note: If the enterprise bean has no environment properties this method returns an empty
java.util.Properties object. |
public boolean | getRollbackOnly() Test if the transaction has been marked for rollback only. |
public TimerService | getTimerService() Get access to the EJB Timer Service.
throws: IllegalStateException - The Container throws the exceptionif the instance is not allowed to use this method (e.g. |
public UserTransaction | getUserTransaction() Obtain the transaction demarcation interface. |
public boolean | isCallerInRole(Identity role) Deprecated. Use boolean isCallerInRole(String roleName) instead.
Test if the caller has a given role.
This method is deprecated in EJB 1.1. |
public boolean | isCallerInRole(String roleName) Tests if the caller has a given role.
Parameters: roleName - - The name of the security role. |
public Object | lookup(String name) New from EJB 3.0. |
public void | setRollbackOnly() Mark the current transaction for rollback. |