3 Replies Latest reply on Jan 9, 2004 1:27 AM by baumgarten

    javax.naming.Context

    baumgarten

      Hi

      If I want to get the Context of a server from a client I have to do something like this:

      java.util.Properties p = new java.util.Properties();
      javax.naming.InitialContext ctx;
      p.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");
      p.put(javax.naming.Context.PROVIDER_URL,"jnp://192.1.111.12:1099");
      ctx = new javax.naming.InitialContext(p);


      on the server I only need to do:

      ctx = new javax.naming.InitialContext();

      It looks like the server knows the initial context factory and the provider url. Is there any way to determine these parameter on the server?