persistence@glassfish.java.net

Losing dbase connection

From: Peter Havelaar <peter-java_net_at_jabbah.net>
Date: Fri, 29 Sep 2006 09:41:23 +0200

Hello everyone,

I am running GF b48 with hibernate and mysql 5.0
It seems that sometimes overnight for some reason the database connection gets lost and I get :

org.hibernate.exception.JDBCConnectionException: could not execute query

The only solution is to restart glassfish.
Needless to say, this musn't happen in a production environment, but I don't really know why this happens.

Regards,
Peter Havelaar