commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Keates, Mark" <Mark.Kea...@dendrite.com>
Subject [DBCP]
Date Thu, 04 Sep 2003 08:26:54 GMT
Hi,

I'm using pooling within a Servlet (under Tomcat) against Oracle with
'maxIdle=3' and 'maxActive=4' settings.
I do see the 4 connections drop down to 3 but the remaining connections
persist against the database.
Does anyone have a method by which these will disconnect if the connection
is idle for a given time,
i.e. no activity? If this is done on the Oracle side, then it can't be
global, i.e. affect other users.

Regards,

Mark

          <Resource name="jdbc/TestServlet" auth="Container"
                    type="javax.sql.DataSource"/>
          <ResourceParams name="jdbc/TestServlet">
		<parameter>
			<name>factory</name>
	
<value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
		</parameter>
		<parameter>
			<name>username</name>
			<value>xxx</value>
		</parameter>
		<parameter>
			<name>password</name>
			<value>yyy</value>
		</parameter>
		<parameter>
			<name>driverClassName</name>
			<value>oracle.jdbc.driver.OracleDriver</value>
		</parameter>
		<parameter>
			<name>url</name>
			<value>jdbc:oracle:thin:@host:port:instance</value>
		</parameter>
		<parameter>
			<name>validationQuery</name>
			<value>SELECT 1 FROM DUAL</value>
		</parameter>
		<parameter>
			<name>maxActive</name>
			<value>4</value>
		</parameter>
		<parameter>
			<name>maxIdle</name>
			<value>3</value>
		</parameter>
		<parameter>
			<name>maxWait</name>
			<value>30000</value>
		</parameter>
		<parameter>
			<name>removeAbandoned</name>
			<value>true</value>
		</parameter>
		<parameter>
			<name>logAbandoned</name>
			<value>true</value>
		</parameter>
		<parameter>
			<name>removeAbandonedTimeout</name>
			<value>120</value>
		</parameter>
          </ResourceParams>


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

**********************************************************************


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message