1 |
SessionContext interface contains the following methods:
-
getEJBObject() : returns EJB Object for this instance.
-
getEJBHome() : returns the reference of home interface for the instance's EJB class.
-
getCallerPrincipal() : returns the invoker of bean instance's EJB Object.
-
isCallerInRole() : tests if the bean caller has a particular role.
-
setRollbackOnly() : beans using container-managed transaction uses to force the current transaction rollback.
-
getRollbackOnly() : beans using container-managed transaction uses to test if the current transaction is marked for rollback.
-
getUserTransaction() : beans using bean-managed transaction can use to get a reference to javax.transaction.UserTransaction so that the bean can use a transaction service.
|