i am trying to use c3p0 in my current Spring based application. I am no database pooling expert and was wondering if there is a more or less a good example of a c3p0 configuration (in applicationContext.xml) that can be used against a MySQL database?
The pool should detect database connection loss and retries.
i am trying to use c3p0 in my current Spring based application. I am
Share
c3o0 is dead, do not use it. Use jdbc-pool
Here’s the docs, (scroll down to How to use) http://people.apache.org/~fhanik/jdbc-pool/jdbc-pool.html
Here’s a good article on why is this better http://www.tomcatexpert.com/blog/2010/03/12/explaining-jdbc-pool-high-concurrency-alternative-connection-pooling-module