Commit 3556eb1a authored by Brian Major's avatar Brian Major
Browse files

ac2 - catch lookup exception on first jndi call for pools

parent fd3ce950
Loading
Loading
Loading
Loading
+11 −2
Original line number Diff line number Diff line
@@ -180,8 +180,17 @@ public abstract class LdapPersistence
    {
        try
        {
            ConnectionPools pools = lookupPools();
            ConnectionPools pools = null;
            try
            {
                pools = lookupPools();
                logger.debug("Pool from first JNDI lookup: " + pools);
            }
            catch (Throwable t)
            {
                logger.warn("Failure looking up pool from JNDI, re-initializing", t);
                pools = null;
            }

            if (pools == null)
            {