0 Replies Latest reply on Sep 3, 2007 9:53 AM by Ana Lorite

    Error invoking old rmi server

    Ana Lorite Newbie

      Hi everyone.

      I've got this cliente code, running on JBoss:

      Registry registry = LocateRegistry.getRegistry("");

      if (registry != null){
      String[] entries = registry.list();
      if (entries != null){
      for (int x = 0; x < entries.length; x++){
      log.debug("Vinculos disponibles[" + x + "]:" + entries[x]);

      Properties env = new Properties(); env.put("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory");
      env.put("java.naming.provider.url","jnp://localhost:1099"); env.put("java.naming.factory.url.pkgs","org.jboss.naming:org.jnp.interfaces");
      ctx = new InitialContext(env);
      log.debug("Naming lookup....");
      Object obj = ctx.lookup("HelloServer");

      And i have the following error:

      Vinculos disponibles[0]:HelloServer
      Naming lookup...
      Receive timed out

      Any idea?

      Thanks in advance. Ana.