1 Reply Latest reply on Apr 16, 2004 12:00 PM by Risto Luukkanen

    how can I get the alive node list?

    peter9080 Newbie


      My question is, in my client code, before I proceed an Ejb's JNDI lookup, how can I get all alive node list?

      codes like this:
      Properties p = new Properties(); p.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory"); p.put(Context.URL_PKG_PREFIXES, "jboss.naming:org.jnp.interfaces"); p.put(Context.PROVIDER_URL, ",,,"); // HA-JNDI port.
      InitialContext jndi=new InitialContext(p);
      Object objRef = jndi.lookup("java:comp/env/ejb/myBank");
      i have 4 nodes in Context.PROVIDER_URL, but some of them might be down. Before the lookup, i want to get those alive node list. how?

      your answer would be highly appreciated!