I've been following the instructions from
https://www.hibernate.org/214.html#A3 to setup hibernate working with c3p0, but it seems it still uses the default connection intead of the c3p0 pool. It'll be much appreciated if someone here could kindly give some help.
- Hibernate 3.2.3.ga
-c3p0-0.9.1.jar is in lib directory
- log4j.logger.com.mchange=DEBUG
- cofigurations in hibernate.cfg.cml, and also I've tried to remove "hibernate." from the property name and it didn't work either
Code:
<property name="hibernate.connection.provider_class">
org.hibernate.connection.C3P0ConnectionProvider
</property>
<property name="hibernate.c3p0.acquire_increment">1</property>
<property name="hibernate.c3p0.idle_test_period">100</property>
<property name="hibernate.c3p0.max_statements">0</property>
<property name="hibernate.c3p0.min_size">0</property>
<property name="hibernate.c3p0.timeout">30</property>