SilverStream
Application Server 3.5

com.sssw.srv.api
Interface AgiEJBContext

All Superinterfaces:
EJBContext

public interface AgiEJBContext
extends EJBContext

SilverStream extension to the standard Enterprise JavaBeans context. It permits a JavaBean to access SilverStream-specific extension functionality, such as access to the SilverStream API, datasets, and so forth. It's guaranteed that the EJBContext for an Enterprise JavaBean obtained on a SilverStream server will implement AgiEJBContext.


Method Summary
 Principal getCallerPrincipal()
          Return the identity of the caller of this Bean, as a Principal.
 AgiDatabase getDatabase()
          Returns the AgiDatabase object of the database on which this Bean resides.
 AgiServer getServer()
          Returns a server object for the server on which this Bean is running.
 AgiSession getSession()
          Returns the AgiSession for the caller of this Bean.
 
Methods implemented from interface javax.ejb.EJBContext
getCallerIdentity, getEJBHome, getEnvironment, getRollbackOnly, getUserTransaction, isCallerInRole, isCallerInRole, setRollbackOnly
 

Method Detail

getSession

public AgiSession getSession()
Returns the AgiSession for the caller of this Bean.
Returns:
Session interface

getServer

public AgiServer getServer()
Returns a server object for the server on which this Bean is running.
Returns:
the server object

getDatabase

public AgiDatabase getDatabase()
Returns the AgiDatabase object of the database on which this Bean resides.
Returns:
AgiDatabase object

getCallerPrincipal

public Principal getCallerPrincipal()
Return the identity of the caller of this Bean, as a Principal.
Specified by:
getCallerPrincipal in interface EJBContext
Returns:
AgiDatabase object

SilverStream
Application Server 3.5