In the java DBCP connection pool - what is an idle connection?

Posted by Ravenor on Stack Overflow See other posts from Stack Overflow or by Ravenor
Published on 2014-08-20T04:14:44Z Indexed on 2014/08/20 4:20 UTC
Read the original article Hit count: 285

A colleague at work insists that a DBCP idle connection is a connection that has lain unused for 30 minutes.

I believe a dbcp idle connection is a connection that is in the pool available to be borrowed, and an active connection is one that is borrowed.

Looking through the code I found no reference to 30 minutes or other magic values and a cursory glance through the code for assuring minidle does not show any such logic.

If he is correct can you please back that up with a code or documentation reference. For the complete answer I would like it answered for both DBCP 1.1 and 1.6.

© Stack Overflow or respective owner

Related posts about java

Related posts about connection-pooling