commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 10969] New: - BasicDataSource defaults are unusable
Date Thu, 18 Jul 2002 21:46:07 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10969>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10969

BasicDataSource defaults are unusable

           Summary: BasicDataSource defaults are unusable
           Product: Commons
           Version: Nightly Builds
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Dbcp
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: wboyce@panix.com


BasicDataSource includes a number of properties that it sets to default values 
when an instance is created.  BasicDataSourceFactory then set these properties 
to whatever values it received from the container.  However, if the container 
does not provide values for some properties, those properties retain their 
default values, producing a connection pool that is completely unusable.  
Specificially, if maxActive and maxWait are not set from the container, then 
their default values of 0 for maxActive and -1 (forever) for maxWait produce a 
connection pool that blocks forever whenever the application attempts to 
retrieve a connection.  I suggest that BasicDataSource should use the defaults 
defined in GenericObjectPool.

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message