> From: vicattomcat [mailto:[email protected]]
> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to