
Originally Posted by
tarjoadi
I didn't match DBCP with C3P0. I used only DBCP. Between the app and DB there isn't any firewall. They are on the same machine.
So you are only working the the dataSource, you've removed the other properties e.g.
Code:
<property name="c3p0.acquire_increment">1</property>
<property name="c3p0.idle_test_period">100</property> <!-- seconds -->
<property name="c3p0.max_size">100</property>
<property name="c3p0.max_statements">0</property>
<property name="c3p0.min_size">10</property>
<property name="c3p0.timeout">100</property> <!-- seconds -->
We used to use testOnBorrow and never had any problems in this respect.