Reconnect « MySQL « JPA Q&A





1. Hibernate: Mysql Auto Reconnect is not happening.    coderanch.com

Hi, I am using Hibernate and Mysql for my application which is running on jboss-5.1.0.GA. Issue: Mysql Auto Reconnect is not happening. Whenver i keep my jboss Idle(say one day), it is throwing below pasted exception. Could you please help me out in resolving this issue? Thanks in advance!! hibernate.cfg.xml ...

2. Automatic reconnect after MYSQL restart    forum.hibernate.org

Hallo, We are using hibernate with very impressive results. Averything works fine, but we still no have a solution for this problem: When our mysql server restarts, the application do not allow any further requests by hibernate. It seems that the sessionFactory needs to reconnect. The serverside message is: Sep 25, 2003 6:40:51 AM net.sf.hibernate.JDBCException SEVERE: Could not execute query ...

3. Reconnect to MySQL DB    forum.hibernate.org

Thanks for the rapid response. The information was very helpful. I will be trying it shortly. Meanwhile, I am facing another issue, where I get errors when the database connection is lost while retreiving the data. I found out that the error occurs, when I try to close the session. I have the following questions. 1. How to verify if the ...