org.objectweb.jonas_ejb.container
Class JRepEntityHome
java.lang.Object
javax.rmi.PortableRemoteObject
org.objectweb.jonas_ejb.container.JHome
org.objectweb.jonas_ejb.container.JEntityHome
org.objectweb.jonas_ejb.container.JRepEntityHome
- All Implemented Interfaces:
- java.rmi.Remote, javax.ejb.EJBHome
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)
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.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 |
JRepEntityHome
public JRepEntityHome(EntityDesc dd,
JEntityFactory bf)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
replicateCreate
protected void replicateCreate(JEntityContext bctx,
java.lang.Object response)
- Called if we have to replicate a request
- Parameters:
rctx
- The RequestCtx that was returned at preInvoke()
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