org.objectweb.jonas_ejb.container.JStatefulContext Class Reference

Inherits org.objectweb.jonas_ejb.container.JSessionContext.

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

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 JStatefulContext (JSessionFactory bf, SessionBean sb, boolean sync)
TimerService getTimerService () throws IllegalStateException
MessageContext getMessageContext () throws java.lang.IllegalStateException
void beforeCompletion ()
void afterCompletion (int status)
void setRemoved () throws RemoteException, RemoveException
void setConnectionList (List conlist)

Package Attributes

boolean synchro = false

Detailed Description

This class extends JSessionContext in case of Stateful Session Bean.
Author:
Philippe Coq, Philippe Durieux

Definition at line 49 of file JStatefulContext.java.


Constructor & Destructor Documentation

org.objectweb.jonas_ejb.container.JStatefulContext.JStatefulContext JSessionFactory  bf,
SessionBean  sb,
boolean  sync
 

Constructs a JStatefulContext

Parameters:
bf - the Session Factory
sb - the Enterprise Bean instance
sync - True if implements SessionSymchronization.

Definition at line 69 of file JStatefulContext.java.

References org.objectweb.jonas_lib.naming.ContainerNaming.getComponentContext(), and org.objectweb.jonas_ejb.container.JStatefulContext.synchro.

Here is the call graph for this function:


Member Function Documentation

void org.objectweb.jonas_ejb.container.JStatefulContext.afterCompletion int  status  ) 
 

The afterCompletion method is called by the transaction manager after the transaction is committed or rolled back. This method executes without a transaction context.

Parameters:
status The status of the transaction completion.

Definition at line 142 of file JStatefulContext.java.

References org.objectweb.jonas_ejb.container.JSessionContext.getInstance(), org.objectweb.jonas_ejb.container.JFactory.myClassLoader(), org.objectweb.jonas_ejb.container.JFactory.resetComponentContext(), org.objectweb.jonas_ejb.container.JFactory.setComponentContext(), org.objectweb.jonas_ejb.container.JContext.setState(), and org.objectweb.jonas_ejb.container.JStatefulSwitch.txCompleted().

Here is the call graph for this function:

void org.objectweb.jonas_ejb.container.JStatefulContext.beforeCompletion  ) 
 

This beforeCompletion method is called by the transaction manager prior to the start of the transaction completion process. This method executes in the transaction context of the calling thread.

Definition at line 116 of file JStatefulContext.java.

References org.objectweb.jonas_ejb.container.JSessionContext.getInstance(), org.objectweb.jonas_ejb.container.JFactory.myClassLoader(), org.objectweb.jonas_ejb.container.JFactory.resetComponentContext(), and org.objectweb.jonas_ejb.container.JFactory.setComponentContext().

Here is the call graph for this function:

MessageContext org.objectweb.jonas_ejb.container.JStatefulContext.getMessageContext  )  throws java.lang.IllegalStateException [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.

Implements org.objectweb.jonas_ejb.container.JSessionContext.

Definition at line 103 of file JStatefulContext.java.

TimerService org.objectweb.jonas_ejb.container.JStatefulContext.getTimerService  )  throws IllegalStateException [virtual]
 

Get access to the EJB Timer Service.

Returns:
the EJB Timer Service
Exceptions:
IllegalStateException Thrown if the instance is not allowed to use this method

Implements org.objectweb.jonas_ejb.container.JContext.

Definition at line 93 of file JStatefulContext.java.

void org.objectweb.jonas_ejb.container.JStatefulContext.setConnectionList List  conlist  )  [virtual]
 

Set the connection list for this instance.

Implements org.objectweb.jonas_ejb.container.JSessionContext.

Definition at line 211 of file JStatefulContext.java.

References org.objectweb.jonas_ejb.container.JStatefulSwitch.setConnectionList().

Here is the call graph for this function:

void org.objectweb.jonas_ejb.container.JStatefulContext.setRemoved  )  throws RemoteException, RemoveException [virtual]
 

set this instance as removed

Implements org.objectweb.jonas_ejb.container.JSessionContext.

Definition at line 186 of file JStatefulContext.java.

References org.objectweb.jonas_ejb.container.JStatefulSwitch.isInTransaction().

Referenced by org.objectweb.jonas_ejb.container.JStatefulSwitch.timeoutExpired().

Here is the call graph for this function:


Member Data Documentation

boolean org.objectweb.jonas_ejb.container.JStatefulContext.synchro = false [package]
 

the bean instance implements SessionSynchronization interface

Definition at line 55 of file JStatefulContext.java.

Referenced by org.objectweb.jonas_ejb.container.JStatefulContext.JStatefulContext().


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