11 Replies Latest reply on Mar 16, 2004 4:23 PM by Luigi Fonti

    Remote clients JNDI problem

    Luigi Fonti Newbie

      I'have an old problem, already posted in this forum without finding a solution.

      I Installed Jboss 3.2 on a Linux machine. The deployed applications can only be reached from local clients. Remote clients always get an object not found exception.

      jmx-console sees all the objects correctly bound.

      I've tried all the possible ways to define a jndi environment on the client side (jndi.properties, and different source level solutions):

      java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
      java.naming.provider.url=192.168.0.170:1099
      java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces

      Properties props = new Properties();
      props.setProperty("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory" );
      props.setProperty( "java.naming.provider.url", "jnp://192.168.0.170:1099" );
      props.setProperty("java.naming.factory.url.pkgs", "org.jboss.naming:org.jnp.interfaces");
      Context jndiContext = new InitialContext(props);

      env = new Hashtable();
      env.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");
      env.put(Context.PROVIDER_URL,"192.168.0.170:1099");
      env.put(Context.URL_PKG_PREFIXES,"org.jboss.naming:org.jnp.interfaces");
      InitialContext jndiContext = new InitialContext(env);

      But none of them changed the result. What I'm asking now is the following:

      Is there a way to get the list of names of EJB's bound in jboss , using a remote client ? (not jmx-console, which is a servlet, i.e. a local object).