You can simply do it by setting the url like this:

jdbc:mysql://localhost:3306/test?autoReconnect=true

Harry


Sudirikku Mohanjith wrote:
> 
> Hi,
> I have configured CAS to use JDBC authentication handler. I'm using
> MySQL for storing the user data. However if I leave CAS idle for more
> than 8 hours, it gives a MySQL related error. I haven't actually seen
> the error, one of the users reported it.
> 
> It sounds like MySQL had closed the connection, and CAS doesn't try to
> reconnect without compaining.
> 
> Any help will be appreciated.
> 
> Cheers,
> Mohanjith
> _______________________________________________
> Yale CAS mailing list
> [email protected]
> http://tp.its.yale.edu/mailman/listinfo/cas
> 
> 

-- 
View this message in context: 
http://www.nabble.com/MySQL-error-with-JDBC-authentication-every-8-hours-tp15629525p15640875.html
Sent from the CAS Users mailing list archive at Nabble.com.

_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas

Reply via email to