org.objectweb.jonas_ejb.container
Class JRepStatefulHome

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

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
protected static org.objectweb.util.monolog.api.Logger cmilogger
          Logger for traces
 
Fields inherited from class org.objectweb.jonas_ejb.container.JHome
bf, dd, ejbMetaData, unregistered
 
Constructor Summary
JRepStatefulHome(SessionDesc dd, JSessionFactory bf)
           
 
Method Summary
 Remote getHARemoteStub(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
 

Field Detail

cmilogger

protected static org.objectweb.util.monolog.api.Logger cmilogger
Logger for traces

Constructor Detail

JRepStatefulHome

public JRepStatefulHome(SessionDesc dd,
                        JSessionFactory bf)
                 throws RemoteException
Throws:
RemoteException
Method Detail

getHARemoteStub

public Remote getHARemoteStub(Remote remote)
                       throws RemoteException
Get the remote object as a stub object for HA remote object LB

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

postInvoke

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

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


Copyright © 2007 OW2 Consortium. All Rights Reserved.