ClassLoader myClassLoader = getClass().getClassLoader();
Thread.currentThread().setContextClassLoader(myClassLoader);
//keep going unless interrupted
while (true)
{
try
{
InternalManagedConnectionPool mcp = null;
//keep iterating through pools till empty, exception escapes.
while (true)
{
synchronized (pools)
{
mcp = (InternalManagedConnectionPool)pools.removeFirst();
}
if (mcp == null)
break;
mcp.fillToMin();
}
}
catch (Exception e)
{
}
try
{
synchronized (pools)
{
while(pools.isEmpty())
{
pools.wait();
}
}
}
catch (InterruptedException ie)
{
return;
}
}