org.objectweb.jonas_ejb.container
Class JRepStatefulLocalHome

java.lang.Object
  extended by org.objectweb.jonas_ejb.container.JLocalHome
      extended by org.objectweb.jonas_ejb.container.JSessionLocalHome
          extended by org.objectweb.jonas_ejb.container.JRepStatefulLocalHome
All Implemented Interfaces:
javax.ejb.EJBLocalHome

public abstract class JRepStatefulLocalHome
extends JSessionLocalHome

Generic part of the EJBLocalHome implementation for replicated SFSBs

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.JLocalHome
bf, dd, homeList
 
Constructor Summary
JRepStatefulLocalHome(SessionDesc dd, JSessionFactory bf)
          constructor
 
Method Summary
abstract  JSessionLocal createLocalObject()
          Creates the EJBLocalObject This is in the generated class because it is mainly "new objectClass()"
protected  BeanFactory getBeanFactory()
           
protected  void replicateCreate(JStatefulSwitch sfsw)
          Called if we have to replicate a request
 
Methods inherited from class org.objectweb.jonas_ejb.container.JSessionLocalHome
remove
 
Methods inherited from class org.objectweb.jonas_ejb.container.JLocalHome
checkSecurity, getJndiLocalName, getLocalHome, postInvoke, preInvoke, register, unregister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JRepStatefulLocalHome

public JRepStatefulLocalHome(SessionDesc dd,
                             JSessionFactory bf)
constructor

Parameters:
dd - The Session Deployment Decriptor
bf - The Session Factory
Throws:
java.lang.Exception
Method Detail

replicateCreate

protected void replicateCreate(JStatefulSwitch sfsw)
Called if we have to replicate a request

Parameters:
rctx - The RequestCtx that was returned at preInvoke()

getBeanFactory

protected BeanFactory getBeanFactory()

createLocalObject

public abstract JSessionLocal createLocalObject()
Creates the EJBLocalObject This is in the generated class because it is mainly "new objectClass()"

Specified by:
createLocalObject in class JSessionLocalHome
Returns:
The Local Object