org.objectweb.carol.cmi
Class ClusterHandle

java.lang.Object
  extended by org.objectweb.carol.cmi.ClusterHandle
All Implemented Interfaces:
java.io.Serializable, java.util.EventListener, javax.ejb.Handle, javax.ejb.HomeHandle, javax.servlet.http.HttpSessionBindingListener

public class ClusterHandle
extends java.lang.Object
implements javax.ejb.HomeHandle, javax.ejb.Handle, java.io.Serializable, javax.servlet.http.HttpSessionBindingListener

A persistent reference to a replicated SFSB Implements HttpSessionBindingListener delegating valueBound and valueUnbound to the associated distributor

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

Constructor Summary
ClusterHandle(ClusterStub cs)
          Constructor
 
Method Summary
 javax.ejb.EJBHome getEJBHome()
           
 javax.ejb.EJBObject getEJBObject()
           
 void updateHttpSession()
          Update the http session in which is bound the associated Handle
 void valueBound(javax.servlet.http.HttpSessionBindingEvent arg0)
           
 void valueUnbound(javax.servlet.http.HttpSessionBindingEvent arg0)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClusterHandle

public ClusterHandle(ClusterStub cs)
              throws java.rmi.RemoteException
Constructor

Parameters:
cs - ClusterStub object
Throws:
java.rmi.RemoteException - if a serialization error occurs
Method Detail

getEJBObject

public javax.ejb.EJBObject getEJBObject()
                                 throws java.rmi.RemoteException
Specified by:
getEJBObject in interface javax.ejb.Handle
Returns:
Get the EJBObject associated with the handle
Throws:
java.rmi.RemoteException - if a deserialization error occurs

getEJBHome

public javax.ejb.EJBHome getEJBHome()
                             throws java.rmi.RemoteException
Specified by:
getEJBHome in interface javax.ejb.HomeHandle
Returns:
Get the EJBHome object associated with the handle
Throws:
java.rmi.RemoteException - if a deserialization error occurs

valueBound

public void valueBound(javax.servlet.http.HttpSessionBindingEvent arg0)
Specified by:
valueBound in interface javax.servlet.http.HttpSessionBindingListener

valueUnbound

public void valueUnbound(javax.servlet.http.HttpSessionBindingEvent arg0)
Specified by:
valueUnbound in interface javax.servlet.http.HttpSessionBindingListener

updateHttpSession

public void updateHttpSession()
Update the http session in which is bound the associated Handle