I have a Spring/JPA application with Hibernate as the JPA provider. I\'ve configured a C3P0 data source in Spring via:
org.hibernate:hibernate-c3p0 looks like the module you would use if you were configuring Hibernate to use C3P0 directly.
You shouldn't need it assuming the configuration you posted works for you - does it?
The hibernate-c3p0.jar provides the class org.hibernate.connection.C3P0ConnectionProvider
, a C3P0-based implementation of the Hibernate ConnectionProvider
contract. You need this artifact when you want to use C3P0 as Hibernate's standalone connection pool (that you configure through the hibernate.cfg.xml
file). Since you're using Spring, you don't need it.