Methods Summary |
---|
public java.security.Identity | getCallerIdentity()Obtain the java.security.Identity of the caller.
This method is deprecated in EJB 1.1. The Container
is allowed to return alway null from this method. The enterprise
bean should use the getCallerPrincipal method instead.
|
public java.security.Principal | getCallerPrincipal()Obtain the java.security.Principal 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 java.util.Properties | getEnvironment()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. This method
never returns null.
|
public boolean | getRollbackOnly()Test if the transaction has been marked for rollback only. An enterprise
bean instance can use this operation, for example, to test after an
exception has been caught, whether it is fruitless to continue
computation on behalf of the current transaction.
Only enterprise beans with container-managed transactions are allowed
to use this method.
|
public TimerService | getTimerService()Get access to the EJB Timer Service.
|
public javax.transaction.UserTransaction | getUserTransaction()Obtain the transaction demarcation interface.
Only enterprise beans with bean-managed transactions are allowed to
to use the UserTransaction interface. As entity beans must always use
container-managed transactions, only session beans or message-driven
beans with bean-managed transactions are allowed to invoke this method.
|
public boolean | isCallerInRole(java.security.Identity role)Test if the caller has a given role.
This method is deprecated in EJB 1.1. The enterprise bean
should use the isCallerInRole(String roleName) method instead.
|
public boolean | isCallerInRole(java.lang.String roleName)Test if the caller has a given security role.
|
public java.lang.Object | lookup(java.lang.String name)Lookup a resource within the component's private naming context.
|
public void | setRollbackOnly()Mark the current transaction for rollback. The transaction will become
permanently marked for rollback. A transaction marked for rollback
can never commit.
Only enterprise beans with container-managed transactions are allowed
to use this method.
|