|
From: <leg...@at...> - 2003-08-31 07:36:28
|
Message:
The following issue has been closed.
Resolver: Gavin King
Date: Sun, 31 Aug 2003 2:35 AM
development of 1.2 is finished
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HBI-4
Here is an overview of the issue:
---------------------------------------------------------------------
Key: HBI-4
Summary: Full feature support for connection pool DBCP
Type: Patch
Status: Closed
Priority: Major
Resolution: REJECTED
Project: Hibernate 1.2
Assignee:
Reporter: Martin Schmidt
Created: Thu, 22 May 2003 3:57 AM
Updated: Sun, 31 Aug 2003 2:35 AM
Description:
The following patch extends Hibernate 1.2.5 to support all features of the Apache DBCP connection pool.
If a property is not specified, the default value from org.apache.commons.pool.impl.GenericObjectPool (connection pool) or org.apache.commons.pool.impl.GenericKeyedObjectPool (prepared statement cache) is taken.
Added configuration parameters to the hibernate.properties file:
# Connection pool
# Tests of connections
hibernate.dbcp.testOnBorrow
hibernate.dbcp.testOnReturn
# Eviction thread
hibernate.dbcp.timeBetweenEvictionRunsMillis
hibernate.dbcp.numTestsPerEvictionRun
hibernate.dbcp.minEvictableIdleTimeMillis
hibernate.dbcp.testWhileIdle
# -----------------------------------------------
# Prepared statement cache
# Tests of connections
hibernate.dbcp.ps.testOnBorrow
hibernate.dbcp.ps.testOnReturn
# Eviction thread
hibernate.dbcp.ps.timeBetweenEvictionRunsMillis
hibernate.dbcp.ps.numTestsPerEvictionRun
hibernate.dbcp.ps.minEvictableIdleTimeMillis
hibernate.dbcp.ps.testWhileIdle
--------------------------------------------------
Bug fixed:
Although it was possible to configure a validation query for the pool (in Hibernate 1.2.4), this query was never executed, because the DBCP properties "testOnBorrow" or "testOnReturn" were never enabled by the DBCPConnectionProvider.
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
|