I am connecting to MySql using Hibernate and every 8 hours the connection is timed out. I am getting com.mysql.jdbc.exceptions.jdbc4.CommunicationsExce ption. It also display very big error message. "The last packet successfully received from the server was 437,036,648 milliseconds ago......."
If i restart my application, things will work fine. Please help me out.