c3p0 « cfg « JPA Q&A

1. Is there any reason to keep around a c3p0.properties file when you use hibernate.cfg.xml?    stackoverflow.com

Our project uses Hibernate (3.3.2) with c3p0 as our connection pool. For a while, it seems there were some c3p0 properties in a c3p0.properties file, and others in hibernate.cfg.xml. I've just ...

2. configure hibernate.cfg.xml with c3po    forum.hibernate.org

Okay, I've looked at several examples, blah, blah, blah, but I'm having problems adding c3po to my hibernate.cfg.xml. This is the exception: java.lang.NoClassDefFoundError: com/mchange/v2/c3p0/DataSources at org.hibernate.connection.C3P0ConnectionProvider.configure(C3P0ConnectionProvider.java:154) at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:124) at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:56) . . . I've added the c3po jar to my class path but when I look in com/mchange there is only a bundle.properties file. By the way I'm using netbeans ide, ...

3. How to configure C3P0 in Hibernate.cfg.xml?    forum.hibernate.org

Newbie Joined: Wed Nov 08, 2006 5:35 am Posts: 4 Hello everyone, My hibernate.cfg.xml as follows: Code: