org.objectweb.jonas_ejb.container
Class JRepEntityHome

java.lang.Object
  extended byjavax.rmi.PortableRemoteObject
      extended byorg.objectweb.jonas_ejb.container.JHome
          extended byorg.objectweb.jonas_ejb.container.JEntityHome
              extended byorg.objectweb.jonas_ejb.container.JRepEntityHome
All Implemented Interfaces:
javax.ejb.EJBHome, java.rmi.Remote

public abstract class JRepEntityHome
extends JEntityHome

This class is the Standard Home for clustered entity objects It exists only for beans that have declared a Remote Interface.

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

Field Summary
 
Fields inherited from class org.objectweb.jonas_ejb.container.JHome
bf, dd, ejbMetaData, unregistered
 
Constructor Summary
JRepEntityHome(EntityDesc dd, JEntityFactory bf)
           
 
Method Summary
 java.rmi.Remote getHARemoteStub(java.rmi.Remote remote, java.lang.Object primaryKey)
          Get the remote object as a stub object for HA remote object LB
protected  void replicateCreate(JEntityContext bctx, java.lang.Object response)
          Called if we have to replicate a request
 
Methods inherited from class org.objectweb.jonas_ejb.container.JEntityHome
createRemoteObject
 
Methods inherited from class org.objectweb.jonas_ejb.container.JHome
checkSecurity, getBf, getDd, getEJBMetaData, getHomeHandle, getJndiName, postInvoke, preInvoke, register, remove, remove, unregister
 
Methods inherited from class javax.rmi.PortableRemoteObject
connect, exportObject, narrow, toStub, unexportObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JRepEntityHome

public JRepEntityHome(EntityDesc dd,
                      JEntityFactory bf)
               throws java.rmi.RemoteException
Method Detail

replicateCreate

protected void replicateCreate(JEntityContext bctx,
                               java.lang.Object response)
Called if we have to replicate a request


getHARemoteStub

public java.rmi.Remote getHARemoteStub(java.rmi.Remote remote,
                                       java.lang.Object primaryKey)
                                throws java.rmi.RemoteException
Get the remote object as a stub object for HA remote object LB

Parameters:
remote - remote object
Returns:
get remote object
Throws:
java.rmi.RemoteException
org.objectweb.carol.cmi.ServerConfigException
java.rmi.NoSuchObjectException - if the clustered object is not found in the CMI registry