> From: vicattomcat [mailto:vicattom...@googlemail.com]
> Subject: why datasource get an already closed connection?
> 
> Who can give me any advice to solve this problem in another way or tell
> me which is the best way among the ways I talked about?

Look at the validationQuery and testOnBorrow settings for the connection pool:
http://commons.apache.org/dbcp/configuration.html

Search the archives for real examples of how to use them with MySQL.
http://marc.info/?l=tomcat-user

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to