use the validationQuery attribute for your connection pool.

the validationQuery executes a query against the database before the connection is returned to the application, and validates that the connection actually works

Filip

CutKiller wrote:
Hi all I have this scenario: |Tomcat| -> |Firewall| -> |Database|
Sometimes the connection to the database is lost. The cause of this fact
maybe lives in the Firewall. But, the major problem, resides in Tomcat. He
doesn't recognize the connection break. What can i do, for Tomcat knows when
the connections break? Best Regards, Rodrigo


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

Reply via email to