dain 2005/11/17 19:42:05
Modified: modules/core/src/java/org/openejb/corba StandardServant.java
Log:
Use new geronimo enterprise naming context
Revision Changes Path
1.12 +4 -4
openejb/modules/core/src/java/org/openejb/corba/StandardServant.java
Index: StandardServant.java
===================================================================
RCS file:
/home/projects/openejb/scm/openejb/modules/core/src/java/org/openejb/corba/StandardServant.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- StandardServant.java 20 Oct 2005 22:19:23 -0000 1.11
+++ StandardServant.java 18 Nov 2005 00:42:05 -0000 1.12
@@ -65,7 +65,7 @@
import org.apache.commons.logging.LogFactory;
import org.apache.geronimo.core.service.InvocationResult;
import org.apache.geronimo.naming.java.RootContext;
-import org.apache.geronimo.naming.java.SimpleReadOnlyContext;
+import org.apache.geronimo.naming.enc.EnterpriseNamingContext;
import org.omg.CORBA.BAD_OPERATION;
import org.omg.CORBA.INVALID_TRANSACTION;
import org.omg.CORBA.MARSHAL;
@@ -141,7 +141,7 @@
componentContext.put("ORB", Util.getORB());
componentContext.put("HandleDelegate", new CORBAHandleDelegate());
try {
- enc = new SimpleReadOnlyContext(componentContext);
+ enc =
EnterpriseNamingContext.createEnterpriseNamingContext(componentContext);
} catch (NamingException e) {
throw new RuntimeException(e);
}