Hibernate c3p0 pool

在Hibernate中使用Connection Pool來增強與資料庫連線的穩定度...

<!-- configuration pool via c3p0 -->

<property name="connection.provider_class">org.hibernate.connection.C3P0ConnectionProvider</property>

<property name="c3p0.min_size">0</property>

<property name="c3p0.max_size">30</property>

<property name="c3p0.timeout">600</property>

<property name="c3p0.max_statements">0</property>

<property name="c3p0.acquire_increment">1</property>

<property name="c3p0.idle_test_period">60</property>