This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes Hibernate: Mysql Auto Reconnect is not happening. 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: Mysql Auto Reconnect is not happening." Watch "Hibernate: Mysql Auto Reconnect is not happening." New topic
Author

Hibernate: Mysql Auto Reconnect is not happening.

Csk Kumar
Greenhorn

Joined: Mar 07, 2011
Posts: 13
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



Exception looks like this:



[
 
 
subject: Hibernate: Mysql Auto Reconnect is not happening.
 
Similar Threads
Requesting help in connecting a DataSource(DSSDEV)
GenericJDBCException: Cannot open connection
EJB3 entity bean
Jboss 5 database connection issues.
JBoss/JPA/Spring Question - What is the JNDI Name for the EntityManager