aspose file tools
The moose likes Object Relational Mapping and the fly likes Communications link failure during commit(). Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Object Relational Mapping
Reply Bookmark "Communications link failure during commit()." Watch "Communications link failure during commit()." New topic
Author

Communications link failure during commit().

bis ani
Ranch Hand

Joined: Mar 09, 2005
Posts: 36
Hi,

For my web application, I am using hibernate and mysql database and Jboss server. I configure the database connection in the hibernate.cfg file.

My server has to run continously for days and the user should be able to access the application whenever required. The problem I am facing is everyday morning, when I first Access the application , I am getting the following exception:

java.sql.SQLException: Communications link failure during commit(). Transaction resolution unknown.



I think the reason is after a period of inactivity , MYSQL Server is closing the connection. But I dont know where/how to set the maximum connect interval, through hibernate.

Please give some ideas regading this.

regards,
Bis
bis ani
Ranch Hand

Joined: Mar 09, 2005
Posts: 36
Hi,

Can anybody help with the above question? Everyday morning I have to restart the server for tackiling this? Any hints..

regards,
Bismi
 
 
subject: Communications link failure during commit().
 
Threads others viewed
Hibernate + mysql jdbc on production
Communications link failure in JBOSS
My SQL connectionproblem
Tomcat 6.0.18 - 5.5.25 or hibernate 3
Removing Eclipse Ganymede
IntelliJ Java IDE