ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Larry Meadors <larry.mead...@gmail.com>
Subject Re: Initial Size of Connection Pool
Date Fri, 12 Aug 2005 21:18:39 GMT
Thanks guys - we are struggling with keeping the docs up-to-date, so
any help you can geive, we'll happily take..

Larry


On 8/12/05, Niels Beekman <n.beekman@wis.nl> wrote:
>  
>  
> 
> It's a pity this new (how new?) implementation is not mentioned in the docs
> yet, it provides way more flexibility that the old one. Fortunately I've
> downloaded the iBATIS-source so I can benefit of all these hidden gems and
> share them when neccesary :) 
> 
>   
> 
> Niels 
> 
>   
>  
>  ________________________________
>  
> 
> From: Nathan Maves [mailto:Nathan.Maves@Sun.COM] 
>  Sent: vrijdag 12 augustus 2005 19:42
>  To: user-java@ibatis.apache.org
>  Subject: Re: Initial Size of Connection Pool 
>  
> 
>   
> 
> 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