How to configure BasicDataSource so after ds.getConnection().close()
connection really closed?
According to:
I need:
ds.setMaxIdle(0);
ds.setTimeBetweenEvictionRunsMillis(60*1000);
But I'm not sure...
How to configure BasicDataSource so after ds.getConnection().close()
connection really closed?
According to:
I need:
ds.setMaxIdle(0);
ds.setTimeBetweenEvictionRunsMillis(60*1000);
But I'm not sure...
Setting the max idle to 0, and setting the time between eviction runs to 60 seconds basically means that if you don't close the connection, the BasicDataSource will close it for you in 60 seconds. If you force the connection closed, then it should be instantly closed.