ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zarar Siddiqi" <zarar.sidd...@utoronto.ca>
Subject Re: Initial Size of Connection Pool
Date Fri, 12 Aug 2005 19:42:55 GMT
Thanks a lot. Works great now!

Zarar

  ----- Original Message ----- 
  From: Niels Beekman 
  To: user-java@ibatis.apache.org 
  Sent: Friday, August 12, 2005 1:34 PM
  Subject: RE: Initial Size of Connection Pool


  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