dblevins    2004/04/13 23:56:18

  Modified:    modules/core/src/java/org/openejb ContainerIndex.java
  Log:

  getInstance wasn't returning the gbean managed container index
  
  Revision  Changes    Path
  1.7       +3 -2      openejb/modules/core/src/java/org/openejb/ContainerIndex.java
  
  Index: ContainerIndex.java
  ===================================================================
  RCS file: 
/home/projects/openejb/scm/openejb/modules/core/src/java/org/openejb/ContainerIndex.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- ContainerIndex.java       12 Apr 2004 08:31:40 -0000      1.6
  +++ ContainerIndex.java       14 Apr 2004 03:56:18 -0000      1.7
  @@ -65,7 +65,7 @@
    */
   public class ContainerIndex implements ReferenceCollectionListener, GBean {
       // todo delete me
  -    private static final ContainerIndex containerIndex = new ContainerIndex();
  +    private static ContainerIndex containerIndex = new ContainerIndex();
       public static ContainerIndex getInstance() {
           return containerIndex;
       }
  @@ -94,6 +94,7 @@
       }
   
       public ContainerIndex(Collection ejbContainers) {
  +        ContainerIndex.containerIndex = this;
           this.ejbContainers = (ReferenceCollection) ejbContainers;
           this.ejbContainers.addReferenceCollectionListener(this);
       }
  
  
  

Reply via email to