关于hibernate c3p0的配置问题,求教!!!
青色刀客 2010-01-11 11:41:49 <session-factory>
<property name="hibernate.connection.provider_class ">
org.hibernate.connection.C3P0ConnectionProvider
</property>
<property name="hibernate.c3p0.max_size ">15</property>
<property name="hibernate.c3p0.min_size ">1</property>
<property name="hibernate.c3p0.timeout ">1800</property>
<property name="hibernate.c3p0.max_statements ">1000</property>
<property name="hibernate.c3p0.idle_test_period ">
30000
</property>
<property name="hibernate.c3p0.acquire_increment ">1</property>
<property name="hibernate.c3p0.validate ">true</property>
<property name="hibernate.jdbc.batch_size">4</property>
<property name="hibernate.max_fetch_depth">0</property>
<property name="hibernate.show_sql">true</property>
<property name="hibernate.transaction.factory_class">
org.hibernate.transaction.JDBCTransactionFactory
</property>
<property name="hibernate.format_sql">true</property>
<property name="connection.url">
jdbc:postgresql://localhost:5432/exam
</property>
<property name="connection.username">postgres</property>
<property name="connection.password">password</property>
<property name="connection.driver_class">
org.postgresql.Driver
</property>
<property name="dialect">
org.hibernate.dialect.PostgreSQLDialect
</property>
<!--<property name="hibernate.connection.datasource">
java:/com/env/jdbc/post_exam
</property>-->
<property name="hibernate.current_session_context_class">
thread
</property>
<property
name="hibernate.transaction.flush_before_completion">
true
</property>
<property name="hibernate.transaction.auto_close_session">
false
</property>
<mapping
resource="......." />
</session-factory>
如上配置,但是运行日志始终显示
INFO - Using Hibernate built-in connection pool (not for production use!)
INFO - Hibernate connection pool size: 20
请问,怎么样才能配上c3p0呢,谢谢啦