org.objectweb.jonas_ejb.container
Class JRepStatefulContext

java.lang.Object
  extended by org.objectweb.jonas_ejb.container.JContext
      extended by org.objectweb.jonas_ejb.container.JSessionContext
          extended by org.objectweb.jonas_ejb.container.JStatefulContext
              extended by org.objectweb.jonas_ejb.container.JRepStatefulContext
All Implemented Interfaces:
java.io.Serializable, javax.ejb.EJBContext, javax.ejb.SessionContext, javax.transaction.Synchronization

public class JRepStatefulContext
extends JStatefulContext

This class extends JSessionContext in case of Replicated Stateful Session Bean.

Author:
Francisco Perez-Sorrosal (fpsorrosal@no-spam@fi.upm.es), Alberto Paz-Jimenez (apaz@no-spam@fi.upm.es)
See Also:
Serialized Form

Field Summary
 org.objectweb.carol.cmi.ObjectId clusterOId
          The cluster object ID
 
Fields inherited from class org.objectweb.jonas_ejb.container.JSessionContext
bs, ismarkedremoved
 
Fields inherited from class org.objectweb.jonas_ejb.container.JContext
bf, myinstance, tm
 
Constructor Summary
JRepStatefulContext(JSessionFactory bf, javax.ejb.SessionBean sb, boolean sync)
          Constructs a JRepStatefulContext
 
Method Summary
 org.objectweb.carol.cmi.ObjectId getClusterOId()
          Gets the cluster object ID
 void setClusterOId(org.objectweb.carol.cmi.ObjectId clusterOId)
          Sets the cluster object ID
 
Methods inherited from class org.objectweb.jonas_ejb.container.JStatefulContext
afterCompletion, beforeCompletion, getMessageContext, getTimerService, setConnectionList, setInstance, setRemoved
 
Methods inherited from class org.objectweb.jonas_ejb.container.JSessionContext
getEJBLocalObject, getEJBObject, getInstance, getRollbackOnly, initSessionContext, isMarkedRemoved
 
Methods inherited from class org.objectweb.jonas_ejb.container.JContext
getCallerIdentity, getCallerPrincipal, getEJBHome, getEJBLocalHome, getEnvironment, getState, getUserTransaction, getWorkManager, isCallerInRole, isCallerInRole, setRollbackOnly, setState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.ejb.EJBContext
getCallerIdentity, getCallerPrincipal, getEJBHome, getEJBLocalHome, getEnvironment, getUserTransaction, isCallerInRole, isCallerInRole, setRollbackOnly
 

Field Detail

clusterOId

public org.objectweb.carol.cmi.ObjectId clusterOId
The cluster object ID

Constructor Detail

JRepStatefulContext

public JRepStatefulContext(JSessionFactory bf,
                           javax.ejb.SessionBean sb,
                           boolean sync)
Constructs a JRepStatefulContext

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

getClusterOId

public org.objectweb.carol.cmi.ObjectId getClusterOId()
Gets the cluster object ID

Returns:
Returns the clusterOId.

setClusterOId

public void setClusterOId(org.objectweb.carol.cmi.ObjectId clusterOId)
Sets the cluster object ID

Parameters:
clusterOId - The clusterOId to set.