dain        2005/01/26 18:28:01

  Modified:    modules/core/src/java/org/openejb/sfsb
                        StatefulInstanceFactory.java
  Log:

  ENC is now passed around as a Map instead of a jndi Context.  This allows the 
ejb container to modify it and inject the kernel and class loader into 
references.
  Changed Stateless and MDB containers to use system chain for ejbCreate and 
ejbRemove invocations.
  Added test to verify that ejbRemove is propertly called from the cache code.
  
  Revision  Changes    Path
  1.5       +4 -3      
openejb/modules/core/src/java/org/openejb/sfsb/StatefulInstanceFactory.java
  
  Index: StatefulInstanceFactory.java
  ===================================================================
  RCS file: 
/home/projects/openejb/scm/openejb/modules/core/src/java/org/openejb/sfsb/StatefulInstanceFactory.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- StatefulInstanceFactory.java      7 Jul 2004 22:17:35 -0000       1.4
  +++ StatefulInstanceFactory.java      26 Jan 2005 23:28:01 -0000      1.5
  @@ -49,9 +49,10 @@
   
   import java.io.Serializable;
   
  +import javax.naming.Context;
  +
   import org.apache.commons.logging.Log;
   import org.apache.commons.logging.LogFactory;
  -import org.apache.geronimo.naming.java.ReadOnlyContext;
   import org.apache.geronimo.naming.java.RootContext;
   import org.openejb.InstanceContextFactory;
   import org.openejb.cache.InstanceFactory;
  @@ -75,7 +76,7 @@
       }
   
       public Object createInstance() throws Exception {
  -        ReadOnlyContext oldContext = RootContext.getComponentContext();
  +        Context oldContext = RootContext.getComponentContext();
   
           try {
               // Disassociate from JNDI Component Context whilst creating 
instance
  
  
  

Reply via email to