cfgPassword.setValue(getPassword());
config.addChild(cfgPassword);
}
// log is required to ensure errors are available
source.enableLogging(new LogKitLogger(log));
try {
source.configure(config);
source.setInstrumentableName(getDataSource());
} catch (ConfigurationException e) {
log.error("Could not configure datasource for pool: "+getDataSource(),e);