Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java Open Source > BOOK: Professional Jakarta Struts
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 11th, 2005, 09:03 AM
Authorized User
 
Join Date: Apr 2005
Location: , , .
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" />
</data-source>


THanksss

http://hhdirecto.webcindario.com

__________________
http://www.terapiahiphop.com
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 06:38 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.