commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wm.A.Stafford" <staff...@marine.rutgers.edu>
Subject DBCP - max active will not go above 8
Date Tue, 17 Jun 2008 20:28:02 GMT
I'm trying to set initialSize and maxActive when I create a DBCP for my 
Spring application.   In spite of this config, initialSize is always 8 
and maxActive never goes above 8.   Any idea what or where these config 
values are being overridden?

Thanks for any help or advice,
-=beeky

     <!--  properties using legacy Obis style naming, to be replaced in 
phase 2 -->
     <bean id="ObisDataSource" 
class="org.apache.commons.dbcp.BasicDataSource">
        <property name="driverClassName">
            <value>${Driver}</value>
        </property>
        <property name="url">
            <value>${URLStr}</value>
        </property>
        <property name="username">
            <value>${UserStr}</value>
        </property>
        <property name="password">
            <value>${PwdStr}</value>
        </property>
        <property name="validationQuery">
            <value>SELECT COUNT(area_str) FROM ron_info </value>
        </property>
        <property name="initialSize">
            <value>12</value>
        </property>
        <property name="maxActive">
            <value>16</value>
        </property>
       <property name="maxWait">
            <value>30000</value>
        </property>
    </bean>

-- 

Wm.A.Stafford

Principal Engineer

The Institute of Marine and Coastal Sciences
Rutgers University
732-932-6555 x367
stafford@marine.rutgers.edu

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


Mime
View raw message