Skip to end of metadata
Go to start of metadata

This article describes how to enable connection pooling with hibernate using c3po.

  1. Get the jars from www.sos-berlin.com/download/jobscheduler_c3po.zip
  2. Unzip the jars to scheduler_home/lib
  3. Open scheduler_data/config/hibernate.cfg.cml
  4. Add the settings for c3po
  5. Restart JobScheduler

A short description of the Parameters:

  1. hibernate.c3p0.min_size – Minimum number of JDBC connections in the pool. Hibernate default: 1
  2. hibernate.c3p0.max_size – Maximum number of JDBC connections in the pool. Hibernate default: 100
  3. hibernate.c3p0.timeout – When an idle connection is removed from the pool (in second). Hibernate default: 0, never expire.
  4. hibernate.c3p0.max_statements – Number of prepared statements will be cached. Increase performance. Hibernate default: 0 , caching is disable.
  5. hibernate.c3p0.idle_test_period – idle time in seconds before a connection is automatically validated. Hibernate default: 0

For more details have a look at https://community.jboss.org/wiki/HowToConfigureTheC3P0ConnectionPool