ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Clinton Begin <clinton.be...@gmail.com>
Subject Re: iBatis DAO - How to turn off data connection pool
Date Mon, 16 May 2005 20:02:36 GMT
What are you trying to achieve by doing that? You can't really "turn off" 
pooling with SimpleDataSource, but you could try one of the other 
implementations or write your own to achieve that. 

Cheers,
Clinton


On 5/16/05, Folashade Adeyosoye <shardayyy@gmail.com> wrote:
> 
>  How can I turn off the Database connection pool in the dao.xml
> 
>   <transactionManager type="JDBC">
> 
> <property name="DataSource" value="SIMPLE"/>
> 
> <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="JDBC.DefaultAutoCommit" value="true"/>
> 
> <property name="Pool.MaximumActiveConnections" value="10"/>
> 
> <property name="Pool.MaximumIdleConnections" value="5"/>
> 
> <property name="Pool.MaximumCheckoutTime" value="120000"/>
> 
> </transactionManager>
> 
>    I tried changing the <property name="Pool.MaximumActiveConnections" 
> value="0"/> and <property name="Pool.MaximumIdleConnections" value="0"/>, 
> but I got an exception
> 
>   exception is thrown - java.lang.IndexOutOfBoundsException: Index: 0, 
> Size: 0
> 
>   Thanks
>

Mime
View raw message