0 Replies Latest reply on Aug 10, 2007 7:12 PM by wayne baylor

    Multiple URLs in JNDI Properties

    wayne baylor Apprentice

      Does JNDI support passing multiple URLs, for example:

       Properties p = new Properties();
       p.put(Context.URL_PKG_PREFIXES, "jboss.naming:org.jnp.interfaces");
       p.put(Context.PROVIDER_URL, "serverA:1099,serverB:1099");
       Context c = new InitialContext(p);

      When I try this only serverA is checked when a lookup is performed. If I set the servers up to use HA-JNDI and change the ports to 1100, then both are checked.

      Is it possible to tell JNDI to check multiple URLs without setting up HA-JNDI?