0 Replies Latest reply on Apr 3, 2007 5:48 AM by carmen climent

    LDAP binding

    carmen climent Newbie

      Hello,

      I wonder if its possible to have a unique jndi name attached to multiple ldap urls, in order to get some kind of "load balancing" between ldap servers.

      What we're trying to achieve is to be able to lookup different contexts
      at application level using just one jndi name.

       InitialContext iniCtx = new InitialContext();
       LdapContext ldapCtx = iniCtx.lookup("external/ldap/jboss");
      


      Is there something similar to the following code snippet for ldap urls?

      <connection-url>jdbc:oracle:thin:@localhost:1521:jboss|jdbc:oracle:thin:@nodo1:1521:jboss</connection-url>
      <url-delimeter>|</url-delimeter>
      


      Thanks in advance,

      Carmen.