Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
1.3.2. C3P0 Connection Pool
C3P0 is an open source JDBC connection pool that is distributed with Hibernate. C3P0 is available in the
lib/ directory. Hibernate uses org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider for connection pooling if the hibernate.c3p0 connection properties are set.
The following table contains
hibernate.c3p0 connection properties to set to use the c3p0 connection pool in Hibernate:
| Property | Details |
|---|---|
hibernate.c3p0.min_size | The minimum number of concurrent connections per connection identity. |
hibernate.c3p0.max_size | The maximum number of concurrent connections per connection identity. |
hibernate.c3p0.timeout | The period an idle connection is allowed to remain in the connection pool before it is closed and removed from the pool. |
hibernate.c3p0.max_statements | The maximum size of the statement cache. |