geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject svn commit: r453522 - in /geronimo/server/trunk: configs/client/src/plan/plan.xml modules/geronimo-client/src/main/java/org/apache/geronimo/client/StaticJndiContextPlugin.java
Date Fri, 06 Oct 2006 07:31:40 GMT
Author: djencks
Date: Fri Oct  6 00:31:40 2006
New Revision: 453522

URL: http://svn.apache.org/viewvc?view=rev&rev=453522
Log:
GERONIMO-2153 install jndi on the app client

Modified:
    geronimo/server/trunk/configs/client/src/plan/plan.xml
    geronimo/server/trunk/modules/geronimo-client/src/main/java/org/apache/geronimo/client/StaticJndiContextPlugin.java

Modified: geronimo/server/trunk/configs/client/src/plan/plan.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/configs/client/src/plan/plan.xml?view=diff&rev=453522&r1=453521&r2=453522
==============================================================================
--- geronimo/server/trunk/configs/client/src/plan/plan.xml (original)
+++ geronimo/server/trunk/configs/client/src/plan/plan.xml Fri Oct  6 00:31:40 2006
@@ -21,10 +21,19 @@
 
     <!-- Naming properties -->
     <gbean name="NamingProperties" class="org.apache.geronimo.system.properties.NamingProperties">
-        <attribute name="namingFactoryInitial">com.sun.jndi.rmi.registry.RegistryContextFactory</attribute>
-        <attribute name="namingFactoryUrlPkgs">org.apache.geronimo.naming</attribute>
-        <attribute name="namingProviderUrl">rmi://localhost:${PlanNamingPort}</attribute>
+        <attribute name="namingFactoryInitial">org.apache.xbean.naming.global.GlobalContextManager</attribute>
+        <attribute name="namingFactoryUrlPkgs">org.apache.xbean.naming</attribute>
+        <attribute name="namingProviderUrl">rmi://${PlanServerHostname}:${PlanNamingPort}</attribute>
     </gbean>
+
+    <gbean name="GlobalContext" class="org.apache.geronimo.gjndi.GlobalContextGBean"/>
+
+    <gbean name="JavaCompContext" class="org.apache.geronimo.gjndi.JavaCompContextGBean"/>
+
+    <gbean name="JavaContext" class="org.apache.geronimo.gjndi.WritableContextGBean">
+        <attribute name="nameInNamespace">java:</attribute>
+    </gbean>
+
 
     <gbean name="DefaultThreadPool" class="org.apache.geronimo.pool.ThreadPool">
         <attribute name="keepAliveTime">5000</attribute>

Modified: geronimo/server/trunk/modules/geronimo-client/src/main/java/org/apache/geronimo/client/StaticJndiContextPlugin.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-client/src/main/java/org/apache/geronimo/client/StaticJndiContextPlugin.java?view=diff&rev=453522&r1=453521&r2=453522
==============================================================================
--- geronimo/server/trunk/modules/geronimo-client/src/main/java/org/apache/geronimo/client/StaticJndiContextPlugin.java
(original)
+++ geronimo/server/trunk/modules/geronimo-client/src/main/java/org/apache/geronimo/client/StaticJndiContextPlugin.java
Fri Oct  6 00:31:40 2006
@@ -53,9 +53,6 @@
 
     public void startClient(AbstractName appClientModuleName, Kernel kernel, ClassLoader
classLoader) throws Exception {
         RootContext.setComponentContext(context);
-        System.setProperty("java.naming.factory.initial", "com.sun.jndi.rmi.registry.RegistryContextFactory");
-        System.setProperty("java.naming.factory.url.pkgs", "org.apache.geronimo.naming");
-//        System.setProperty("java.naming.provider.url", "rmi://localhost:1099");
         new InitialContext().lookup("java:comp/env");
     }
 



Mime
View raw message