org.objectweb.jonas_ejb.container
Class JRepStatefulHome

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

public abstract class JRepStatefulHome
extends JSessionHome

This class is the Standard Home for replicated SFSB 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), Benoit Pelletier

Field Summary
 
Fields inherited from class org.objectweb.jonas_ejb.container.JHome
bf, dd, ejbMetaData, unregistered
 
Constructor Summary
JRepStatefulHome(SessionDesc dd, JSessionFactory bf)
           
 
Method Summary
 java.rmi.Remote getHARemoteStub(java.rmi.Remote remote)
          Get the remote object as a stub object for HA remote object LB
 void postInvoke(RequestCtx rctx)
          postInvoke is called after any request.
 
Methods inherited from class org.objectweb.jonas_ejb.container.JSessionHome
createRemoteObject, getRemoteOrRemoteStub, preInvoke, remove
 
Methods inherited from class org.objectweb.jonas_ejb.container.JHome
checkSecurity, getBf, getDd, getEJBMetaData, getHomeHandle, getJndiName, register, 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

JRepStatefulHome

public JRepStatefulHome(SessionDesc dd,
                        JSessionFactory bf)
                 throws java.rmi.RemoteException
Method Detail

getHARemoteStub

public java.rmi.Remote getHARemoteStub(java.rmi.Remote remote)
                                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

postInvoke

public void postInvoke(RequestCtx rctx)
                throws java.rmi.RemoteException
postInvoke is called after any request.

Overrides:
postInvoke in class JSessionHome
Parameters:
rctx - The RequestCtx that was returned at preInvoke()
Throws:
java.rmi.RemoteException - Thrown when the method failed due to a system-level failure.