ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Renato Silveira" <renatosilve...@gmail.com>
Subject Re: Conections Opened
Date Thu, 10 Aug 2006 22:44:31 GMT
Hi,

I have configured the maxActive connection with 10 but every call I do a new
connection is created.

 <transactionManager type="JDBC">
    <dataSource type="DBCP">
      <property value="${database_driver}" name="JDBC.Driver"/>
      <property value="${database_url}" name="JDBC.ConnectionURL"/>
      <property value="${database_user}" name="JDBC.Username"/>
      <property value="${database_password}" name="JDBC.Password"/>
      <property value="10" name="Pool.MaximumActiveConnections"/>
      <property value="5" name="Pool.MaximumIdleConnections"/>
      <property value="6000" name="Pool.MaximumWait"/>
    </dataSource>
  </transactionManager>

This is my SQL-map-config like. How do I limit the number of opened
connections?

tks!

On 8/10/06, Renato Silveira <renatosilveira@gmail.com> wrote:
>
> Hi,
>
> How many connections are opened by Ibatis to make a simple query?
>
> In my sql-map-config, using SimpleDataSource (pool), the maxnumber of
> connection are like this:
> <property value="1" name=" Pool.MaximumActiveConnections"/>
> <property value="1" name="Pool.MaximumIdleConnections"/>
> But Ibatis open 4 connections at least.
>
> Cheers!
>
>

Mime
View raw message