wood burning stoves*
The moose likes Object Relational Mapping and the fly likes Hibernate Preventing Connection Timeouts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Hibernate Preventing Connection Timeouts" Watch "Hibernate Preventing Connection Timeouts" New topic

Hibernate Preventing Connection Timeouts

Abiodun Adisa
Ranch Hand

Joined: Jan 17, 2002
Posts: 495
I am using Hibernate to connect to my MYSQL version 5 database, any time i leave the application for like 8 hours and attempt to use it again i always get this exception

I read that MySQL times out connections that are not active for a period of time, is there a solution in Hibernate to prevent this from happening
Edvins Reisons
Ranch Hand

Joined: Dec 11, 2006
Posts: 364
How are your connections configured and managed? Things like data source, connection pool,...
I agree. Here's the link: http://aspose.com/file-tools
subject: Hibernate Preventing Connection Timeouts
Similar Threads
Hibernate/MySQL Timeout Issue
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
Class Cast Exception Problem
Hibernate + mysql jdbc on production
java.net.SocketException: Connection reset