This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Hibernate Preventing Connection Timeouts" Watch "Hibernate Preventing Connection Timeouts" New topic
Author

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