[opencms-dev] Dealing with lost database connection

Yves Glodt yg at mind.lu
Tue Mar 4 10:23:52 CET 2008


Hello,

I have my site running with OpenCms on a  MySQL database.

I I have tried stopping mysql, and then the site of course stopped working 
completely, and returned only empty pages.

Then I restarted mysql, and the site worked again as expected, without 
relaunching tomcat.

Is it possible that OpenCms will notify in case of failure of the database 
backend?

Or should I write a custom servlet in a separate application which polls the 
database and acts on failure?

Best regards,
Yves



More information about the opencms-dev mailing list