}
for (Map.Entry<ConnectorConnectionPool, MonitorableResourcePool> entry :
poolMap.entrySet() ) {
ConnectorConnectionPool ccp = entry.getKey();
MonitorableResourcePool pool = entry.getValue();
if ( pool != null ) {
try {
ConnectorConnectionPoolStatsImpl stats = new
ConnectorConnectionPoolStatsImpl(pool);
getPoolManager().setMonitoringEnabledLow(
pool.getPoolName());
registry_.registerConnectorConnectionPoolStats(
stats, pool.getPoolName(),
resUtil.getAppName(ccp),
resUtil.getRAName(ccp), null);
} catch (Exception mre) {
try {
_logger.log( Level.WARNING, "poolmon.cannot_reg",
mre.getMessage() );
getPoolManager().disableMonitoring(
pool.getPoolName());
} catch (Exception ex) {
//FIXME: ignore?
}
}
}