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):


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

      env = new Hashtable();
      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).