> BTW, What do you mean by destroying the connections in the pool if it is invalid? When does a connection becomes invalid?
Sorry for the delayed response!
c3p0 can test Connections periodically by attempting an operation on them. If the operation fails, the Connection will be considered invalid, and get purged from the pool.
If you're using c3p0 via hibernate, setting hibernate.c3p0.validate to true causes Connections to be tested on every checkout (but this slows down checkouts), and setting a nonzero hibernate.c3p0.idle_test_period causes idle connections in the pool to be periodically tested.
Your settings look reasonable.
If you have other c3p0-related questions or problems, feel free to write
c3p0-users@lists.sourceforge.net, or to me directly at
swaldman@mchange.com.
smiles,
Steve