Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate Preventing Connection Timeouts

 
Abiodun Adisa
Ranch Hand
Posts: 495
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 364
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How are your connections configured and managed? Things like data source, connection pool,...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic