Basic HTML version of Foils prepared July 6 99

Foil 26 Session Beans - SessionContext Interface

From Object Web Computing Technologies CPS714 Computational Science Information Track -- June 16 99. by H. Timucin Ozdemir


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.

in Table To:


© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Tue Jul 6 1999