ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niels Beekman" <n.beek...@wis.nl>
Subject RE: Initial Size of Connection Pool
Date Fri, 12 Aug 2005 17:45:52 GMT
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 :)





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 !



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.



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



Properties that need to be passed to the driver can be added with the
prefix 'Driver' as usual.


Hope this helps,





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.





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




View raw message