I'm using the tomcat connection pool via JNDI resources.
To avoid that the connection is lost after a long inactivity (more of 8 hours, that is the default value of MySQL variable wait_timeout), I have put validationQuery and testOnBorrow in the context.xml.
My context.xml is:
It works, but if a I use a SSL connection, it doesn't work anymore.
I wouldn't to use autoreconnect=true, 'cause it is not recommended by MySQL team itself
What could be the issue? Why this difference between SSL and no-SSL?
Joined: Nov 03, 2012
It seems to work by putting ssl=true in the query string of the connection to db:
subject: Connection Pool configuration: Tomcat jndi, SSL and MySQLNonTransientConnectionException