I have a Webapp that overnight loses its connection to the MySQL database.
I realize there is a timeout and I have code, in the
servlet's POST, that does something like this:
if ( connection.isClosed())
{
this.initializeConnection();
}
The initializeConnection() method re-creates the connection from scratch.
Yet, still, first thing in the morning, when I start up the Web app, I'll see a "Communication link Failure" as a probable cause for the Web app failing. The code above seems to re-establish the link, but I still get errors.
On another version of MySQL (3.23) some users just get a blank screen. In 4.1, I seem to log in correctly.
What can I do to prevent this timeout or other issue?
Thanks very much for all replies!!!
- Mike