MYSQL 8 Hours Time out Problem -


I am using MYSQL 5.0 and Tomcat 5.5. After 8 hours, MYSQL closes by default, closes all passive connections and so I'm getting an SQL exception. Any solution to this problem

Which connection pool are you using?

EDIT: I think you should set the appropriate (cheap) validation code . You can either check DBCP either to potentially expose the passive connection ( testWhileIdle ) or ask it to test before returning the connection ( testOnBorrow ). First (hopefully!) Keep your passive connection alive; The second does not happen, but you will not return broken connections (i.e., if necessary, will make a new one).


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -