Wrox Programmer Forums
BOOK: Professional Jakarta Struts
This is the forum to discuss the Wrox book Professional Jakarta Struts by James Goodwill, Richard Hightower; ISBN: 9780764544378
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Jakarta Struts section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old April 11th, 2005, 09:03 AM
Authorized User
Join Date: Apr 2005
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default Connetion pooling problem

I work with struts
I have a page that has been taking enough seconds in loading since for many consultations with data. When executing never it gives it problems but if I at the same time send it from two browsers ones almost always they cracks randomly giving one of these two errors.
java.sql.SQLException: No operations allowed after connection closed.
java.sql.SQLException: Operation not allowed after ResultSet closed.

Using mysql-connector-java-3.1.7-bin.jar

Usando un pool de conexiones.
Configuración de la BD
<data-source type="org.apache.commons.dbcp.BasicDataSource">
<set-property property="driverClassName" value="org.gjt.mm.mysql.Driver" />
<set-property property="url" value="jdbc:mysql://localhost:3306/supervisiondb" />
<set-property property="username" value="acastro" />
<set-property property="password" value="acastro" />
<set-property property="maxActive" value="30" />
<set-property property="maxIdle" value="5" />
<set-property property="minIdle" value="2" />
<set-property property="minEvictableIdleTimeMillis" value="20000" />
<set-property property="timeBetweenEvictionRunsMillis" value="60000" />
<set-property property="maxWait" value="15000" />
<set-property property="defaultAutoCommit" value="true" />
<set-property property="defaultReadOnly" value="false" />
<set-property property="validationQuery" value="SELECT * FROM CLIENTES" />
<set-property property="testOnBorrow" value="true" />
<set-property property="testWhileIdle" value="true" />
<set-property property="removeAbandoned" value="true" />
<set-property property="removeAbandonedTimeout" value="60" />
<set-property property="logAbandoned" value="true" />




Similar Threads
Thread Thread Starter Forum Replies Last Post
Connection Pooling problem. nitinp ASP.NET 2.0 Professional 2 July 9th, 2007 02:12 AM
Pooling in IIS6 aliirfan84 ASP.NET 2.0 Professional 1 May 16th, 2007 07:14 AM
String pooling? reza_ahmadi Java Espanol 1 November 3rd, 2006 05:31 AM
Connection Pooling nigam.anand Apache Tomcat 0 October 18th, 2006 08:39 AM
Connection Pooling with Beans angrycat Apache Tomcat 4 September 16th, 2004 06:11 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.