Hello,
Currently, if there is bad database connection in the
pool_config.xml. the initialization will failed for all
database in the config file. Can we allow other
database to go throught the config and just log the
error for the bad database?
I changed the PoolManagerImpl.java a bit to work in my
enviroment. I'd like to share it with you so that you
can make it better and include it in the next version.
Sincerely,
Anh Ngo
private void loadConfig(File file ) throws
ConnectionPoolException {
Collection c = new
ConfigFileParser().getPoolConfig(file);
Iterator it = c.iterator();
while (it.hasNext()) {
PoolConfig pc = (PoolConfig)it.next();
String poolName = pc.getPoolName();
debug.print("" + pc);
if (pc.isDefaultPool()) {
if (defaultPool != null)
throw new ConnectionPoolException("More than one
Connection Pools cannot have default set to 'true'");
defaultPool = poolName;
}
try {
ConnectionPool pool = new ConnectionPool(pc);
poolMap.put(poolName, pool);
}
catch(Exception e)
{
e.printStackTrace();
}
}
\}