dain 2005/01/26 18:28:00
Modified: modules/core/src/java/org/openejb/entity
EntityInstanceFactory.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/entity/EntityInstanceFactory.java
Index: EntityInstanceFactory.java
===================================================================
RCS file:
/home/projects/openejb/scm/openejb/modules/core/src/java/org/openejb/entity/EntityInstanceFactory.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- EntityInstanceFactory.java 7 Jul 2004 22:17:33 -0000 1.4
+++ EntityInstanceFactory.java 26 Jan 2005 23:28:00 -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;
@@ -74,7 +75,7 @@
}
public Object createInstance() throws Exception {
- ReadOnlyContext oldContext = RootContext.getComponentContext();
+ Context oldContext = RootContext.getComponentContext();
try {
// Disassociate from JNDI Component Context whilst creating
instance