commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bob Arnott <b...@autonomy.com>
Subject Re: [DBCP] Newbie seeking basic guidance...
Date Wed, 13 Dec 2006 16:45:10 GMT
James A. Cubeta wrote:

[snipped...]

> So my questions revolve around tweaking this framework for speed. I
> guess my very first question is: Is there a way to instruct DBCP to
> initially set up a some number of connections?

When you create your pool with BasicDataSource, you can modify its behavior
with it's properties. One of them is initialSize -

http://jakarta.apache.org/commons/dbcp/apidocs/org/apache/commons/dbcp/BasicDataSource.html#initialSize

Perhaps this will supply the functionality you are looking for...?

Cheers,

-- 
Bob Arnott


---------------------------------------------------------------------
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