Ben J. Christensen

Software Development and Other Random Stuff

C3P0 Configuration

http://www.hibernate.org/214.html

testConnectionOnCheckout Must be set in c3p0.properties, C3P0 default: false

Don’t use it, this feature is very expensive. If set to true, an operation will be performed at every connection checkout to verify that the connection is valid. A better choice is to verify connections periodically using c3p0.idleConnectionTestPeriod.


Filed under: Code

2 Responses

  1. Franklin says:

    Thanks for the info…Sure did help

Leave a Reply

Twitter Updates

  • I *really* wish iBooks and Kindle would let me copy/paste text so I can quote a sentence or paragraph! Ridiculous that I can't. 23 hours ago
  • Great weekend (and ‘food tourism’) in Los Angeles. "Sooo fun!" as described by a certain short person when asked on the drive home. 1 day ago
  • Small world! Just ran into a colleague from work - a 7hr drive from the office! 1 day ago
  • We made it to LA! Feels like returning home :-) 3 days ago
  • Peter Pan Baby http://twitpic.com/2kg6n4 5 days ago
View Ben Christensen's profile on LinkedIn