Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

iBatis: "too many connections"  RSS feed

 
Stenfo_Bertz
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have used as Transaction manager the "JDBC" type and as type of implementation as DataSourceFactory the "DBCP" type (Jakarta Commons Connection cartel)
commons-dbcp-1.2.1.zip
commons-pool-1.3.zip
commons-collections-3.2.zip

Configuration file SqlMapConfing.xml :

<transactionManager type="JDBC">
<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="30"/>
<property name="maxIdle" value="10"/>
<property name="maxWait" value="60000"/>
</dataSource>
</transactionManager>

File log:
org.apache.commons.dbcp.SQLNestedException: Cannot create
PoolableConnectionFactory (Data source rejected establishment of
connection, message from server: "Too many connections");

Will be a problem of setting?
Thanks.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"super pippo"

Welcome to JavaRanch!

Please update your display name so it complies with our Naming Policy. You can do this here.

Thanks!
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65898
135
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Stefan o_Bertz", thanks for trying to comply with the naming policy, and you're almost there. Please replace the underscore in your display name with a space and all will be joyful.

thanks.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!