for (Connector conn : repository.getConnectors()) {
if (jndiName.equalsIgnoreCase(conn.getUniqueId())) {
if (conn.getConnectionFactories() == null
|| conn.getConnectionFactories().get(0) == null)
continue;
PoolConfiguration pc = conn.getConnectionFactories().get(0).getPoolConfiguration();
if (MAX_POOL_SIZE.equals(parameterName)) {
pc.setMaxSize(newValue.asInt());
}
if (MIN_POOL_SIZE.equals(parameterName)) {
pc.setMinSize(newValue.asInt());
}
if (BLOCKING_TIMEOUT_WAIT_MILLIS.equals(parameterName)) {
pc.setBlockingTimeout(newValue.asLong());
}
if (POOL_USE_STRICT_MIN.equals(parameterName)) {
pc.setStrictMin(newValue.asBoolean());
}
if (USE_FAST_FAIL.equals(parameterName)) {
pc.setUseFastFail(newValue.asBoolean());
}
}
}
}