org.objectweb.jonas_ejb.container
Class JRepStatefulContext
java.lang.Object
org.objectweb.jonas_ejb.container.JContext
org.objectweb.jonas_ejb.container.JSessionContext
org.objectweb.jonas_ejb.container.JStatefulContext
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 |
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.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 |
clusterOId
public org.objectweb.carol.cmi.ObjectId clusterOId
- The cluster object ID
JRepStatefulContext
public JRepStatefulContext(JSessionFactory bf,
javax.ejb.SessionBean sb,
boolean sync)
- Constructs a JRepStatefulContext
- Parameters:
bf
- - the Session Factorysb
- - the Enterprise Bean instancesync
- - True if implements SessionSymchronization.
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.