org.objectweb.jonas_ejb.container.JSessionContext Class Reference

Inherits org.objectweb.jonas_ejb.container.JContext.

Inherited by org.objectweb.jonas_ejb.container.JStatefulContext, and org.objectweb.jonas_ejb.container.JStatelessContext.

Inheritance diagram for org.objectweb.jonas_ejb.container.JSessionContext:

Inheritance graph
[legend]
Collaboration diagram for org.objectweb.jonas_ejb.container.JSessionContext:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 JSessionContext (JSessionFactory bf, SessionBean eb)
EJBObject getEJBObject () throws IllegalStateException
EJBLocalObject getEJBLocalObject () throws IllegalStateException
abstract MessageContext getMessageContext () throws java.lang.IllegalStateException
boolean getRollbackOnly () throws IllegalStateException
void initSessionContext (JSessionSwitch bs)
SessionBean getInstance () throws RemoteException
boolean isMarkedRemoved ()

Detailed Description

This class implements javax.ejb.SessionContext interface. it should be implemented by JStatefulContext and JStatelessContext depending if the beans is stateful or stateless.
Author:
Philippe Coq, Philippe Durieux

Definition at line 48 of file JSessionContext.java.


Constructor & Destructor Documentation

org.objectweb.jonas_ejb.container.JSessionContext.JSessionContext JSessionFactory  bf,
SessionBean  eb
 

Constructs a SessionContext

Parameters:
bf The Session Factory
eb The Session bean instance

Definition at line 59 of file JSessionContext.java.

References org.objectweb.jonas_ejb.container.JSessionFactory.getHome(), and org.objectweb.jonas_ejb.container.JSessionFactory.getLocalHome().

Here is the call graph for this function:


Member Function Documentation

EJBLocalObject org.objectweb.jonas_ejb.container.JSessionContext.getEJBLocalObject  )  throws IllegalStateException
 

Obtain a reference to the EJB local object that is currently associated with the instance.

Returns:
The EJB local object currently associated with the instance.
Exceptions:
java.lang.IllegalStateException - if the instance invokes this method while the instance is in a state that does not allow the instance to invoke this method, or if the instance does not have a local interface.

Definition at line 104 of file JSessionContext.java.

References org.objectweb.jonas_ejb.container.JSessionSwitch.getLocal().

Here is the call graph for this function:

EJBObject org.objectweb.jonas_ejb.container.JSessionContext.getEJBObject  )  throws IllegalStateException
 

Obtains a reference to the EJB object that is currently associated with the instance.

Returns:
The EJB object currently associated with the instance.
Exceptions:
IllegalStateException: Thrown if the instance invokes this method while the instance is in a state that does not allow the instance to invoke this method.

Definition at line 79 of file JSessionContext.java.

References org.objectweb.jonas_ejb.container.JSessionSwitch.getRemote().

Here is the call graph for this function:

SessionBean org.objectweb.jonas_ejb.container.JSessionContext.getInstance  )  throws RemoteException
 

Returns the bean instance of this context Used in the generated classes to retrieve the instance

Returns:
the bean instance
Exceptions:
RemoteException if no instance

Definition at line 160 of file JSessionContext.java.

Referenced by org.objectweb.jonas_ejb.container.JStatefulContext.afterCompletion(), org.objectweb.jonas_ejb.container.JStatefulContext.beforeCompletion(), and org.objectweb.jonas_ejb.container.JStatelessFactory.notifyTimeout().

abstract MessageContext org.objectweb.jonas_ejb.container.JSessionContext.getMessageContext  )  throws java.lang.IllegalStateException [pure virtual]
 

Obtain a reference to the JAX-RPC MessageContext.

Returns:
The MessageContext for this web service invocation.
Exceptions:
java.lang.IllegalStateException - the instance is in a state that does not allow access to this method.

Implemented in org.objectweb.jonas_ejb.container.JStatefulContext, and org.objectweb.jonas_ejb.container.JStatelessContext.

boolean org.objectweb.jonas_ejb.container.JSessionContext.getRollbackOnly  )  throws IllegalStateException
 

Tests if the transaction has been marked for rollback only.

Returns:
true if transaction will rollback

Reimplemented from org.objectweb.jonas_ejb.container.JContext.

Definition at line 130 of file JSessionContext.java.

References org.objectweb.jonas_ejb.container.JContext.getState().

Here is the call graph for this function:

void org.objectweb.jonas_ejb.container.JSessionContext.initSessionContext JSessionSwitch  bs  ) 
 

Reinit Context for reuse

Parameters:
bs The SessionSwitch to reuse.

Definition at line 147 of file JSessionContext.java.

References org.objectweb.jonas_ejb.container.JSessionLocal.bs.

Referenced by org.objectweb.jonas_ejb.container.JStatefulSwitch.bindICtx(), and org.objectweb.jonas_ejb.container.JStatelessFactory.getJContext().

boolean org.objectweb.jonas_ejb.container.JSessionContext.isMarkedRemoved  ) 
 

Returns:
True if bean instance is marked removed.

Definition at line 171 of file JSessionContext.java.

Referenced by org.objectweb.jonas_ejb.container.JStatelessSwitch.releaseICtx(), and org.objectweb.jonas_ejb.container.JStatefulSwitch.releaseICtx().


The documentation for this class was generated from the following file:
Generated on Tue Feb 15 15:10:36 2005 for JOnAS by  doxygen 1.3.9.1