if idle-timeout-minutes is 5, then if a connection in pool is idle for more than 5 minutes, it will be closed.
But consider i set,
min pool size as 10
max pool size as 12
idle timeout minutes as 5
if not even a single connection is used by the application for the past 20 minutes, will only the 2 connections from the pool be closed? or all 12 connections will be closed? because i set min pool size as 10....
min-pool-size doesn't mean that, that many connections will be opened by default. The "prefill" element too plays a role. Take a look at the explanation of *both* "prefill" and "min-pool-size" attributes here https://community.jboss.org/wiki/ConfigDataSources