ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nathan Maves <Nathan.Ma...@Sun.COM>
Subject Re: Initial Size of Connection Pool
Date Fri, 12 Aug 2005 17:42:10 GMT
Now sure if the docs have been updated with this new information but  
they will be :)

Took me a while to figure this out on my own :)

Niels just beat me in typing the email !

Nathan
On Aug 12, 2005, at 11:34 AM, Niels Beekman wrote:

> iBATIS has a legacy implementation for DBCP, this is the  
> implementation described in the docs, prefixed with ‘Pool’, it also  
> has a new implementation, you just specify the properties as  
> mentioned in the documentation you found on apache.org.
>
>
>
> Legacy:
>
> <dataSource type="DBCP">
>
>   <property name="JDBC.Driver" value="${driver}"/>
>
>   <property name="JDBC.ConnectionURL" value="${url}"/>
>
>   <property name="JDBC.Username" value="${username}"/>
>
>   <property name="JDBC.Password" value="${password}"/>
>
>   <property name="Pool.MaximumActiveConnections" value="10"/>
>
> </datasource>
>
>
>
> New:
>
> <dataSource type="DBCP">
>
>   <property name="driverClassName" value="${driver}"/>
>
>   <property name="url" value="${url}"/>
>
>   <property name="username" value="${username}"/>
>
>   <property name="password" value="${password}"/>
>
>   <property name="maxActive" value="10"/>
>
>   <property name="initialSize" value="5"/>
>
> </datasource>
>
>
>
> Properties that need to be passed to the driver can be added with  
> the prefix ‘Driver’ as usual.
>
>
>
> Hope this helps,
>
>
>
> Niels
>
>
>
> From: Zarar Siddiqi [mailto:zarar.siddiqi@utoronto.ca]
> Sent: vrijdag 12 augustus 2005 18:46
> To: user-java@ibatis.apache.org
> Subject: Initial Size of Connection Pool
>
>
>
> Since IBatis implements the DBCP, is there a way to define the  
> "initialSize" property indicating that the connection pool be  
> started off with a custom number of connections.
>
>
>
> http://jakarta.apache.org/commons/dbcp/configuration.html
>
>
>
>
>
> I looked at the docs and see usages of  
> Pool.MaximumActiveConnections etc but not one for the initialSize  
> of the pool.  Is this not possible with IBatis?
>
>
>
> Zarar
>
>


Mime
View raw message