Why does Hibernate/JDBC/MySQL drop connections after a day or so?

前端 未结 4 627
-上瘾入骨i
-上瘾入骨i 2020-12-05 08:03

I have several server processes that once in a while respond to messages from the clients and perform read-only transactions.

After about a few days that the servers

4条回答
  •  离开以前
    2020-12-05 08:46

    MySql basically timeouts by default in 8 hours.

    I got the same exception & resolved the issue after 3 hectic days.Check if you are using I hibernate3. In this version it is required to explicitly mention the connection class name. Also check if the jar is in classpath. Check steps & comments in below link

    http://hibernatedb.blogspot.com/2009/05/automatic-reconnect-from-hibernate-to.html

    Remove autoReconnect=true

提交回复
热议问题