String serverName = null;
if (notification.getUserData() != null)
serverName = (String)((Map)notification.getUserData()).get("com.sun.enterprise.ee.selfmanagement.events.clusterevent.servername");
if (ResourceHelper.isJdbcPoolReferenced(ctx, poolName, serverName)) {
int maxPoolSize = calcMaxPoolSize(poolName);
ResourcePool pool = Switch.getSwitch().getPoolManager().getPool(poolName);
pool.setMaxPoolSize(maxPoolSize);
if(_logger.isLoggable(Level.INFO))
_logger.log(Level.INFO, sm.getString("connectionpool.setmaxpoolsize", poolName, maxPoolSize));
}
} catch (ConfigException cex) {
_logger.log(Level.WARNING, sm.getString("action.internal_error"),cex);