gdamour     2005/12/21 09:21:54

  Modified:    modules/core/src/java/org/openejb/slsb
                        StatelessInstanceFactory.java
  Log:

  GERONIMO-1397 Clustering of SFSB
  
  First step of many others to add the clustering of SFSB.
  
  This check-in adds the following features:
  * definition of an EJBClusterManager, which abstracts an EJB Cluster node;
  * this EJB cluster node is a standard GBean (the default or
  WADI implementation is DefaultEJBClusterManager);
  * in an openejb-jar.xml DD, a SFSB can declare a reference to this node via
  the ejb-cluster-reference element;
  * when the SFSB container is started, the EJB cluster node notifies
  the cluster that it is running a specific SFSB container;
  * when a clustered SFSB InstanceContext is created, an array of nodes running
  the container of this SFSB is associated to the InstanceContext. Note that
  this array of nodes is updated upon start-up of a clustered SFSB container or
  upon node failure;
  * this array of nodes capable of running the created SFSB is propagated to
  clients. Actually, this array is propagated at each EJB invocation.
  
  Revision  Changes    Path
  1.5       +4 -4      
openejb/modules/core/src/java/org/openejb/slsb/StatelessInstanceFactory.java
  
  Index: StatelessInstanceFactory.java
  ===================================================================
  RCS file: 
/home/projects/openejb/scm/openejb/modules/core/src/java/org/openejb/slsb/StatelessInstanceFactory.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- StatelessInstanceFactory.java     26 Jan 2005 23:28:01 -0000      1.4
  +++ StatelessInstanceFactory.java     21 Dec 2005 14:21:54 -0000      1.5
  @@ -51,7 +51,7 @@
   
   import org.apache.commons.logging.Log;
   import org.apache.commons.logging.LogFactory;
  -
  +import org.openejb.InstanceContextFactory;
   import org.openejb.cache.InstanceFactory;
   
   
  @@ -61,9 +61,9 @@
   public class StatelessInstanceFactory implements InstanceFactory, 
Serializable {
       private static final Log log = 
LogFactory.getLog(StatelessInstanceFactory.class);
   
  -    private final StatelessInstanceContextFactory factory;
  +    private final InstanceContextFactory factory;
   
  -    public StatelessInstanceFactory(StatelessInstanceContextFactory factory) 
{
  +    public StatelessInstanceFactory(InstanceContextFactory factory) {
           this.factory = factory;
       }
   
  
  
  

Reply via email to