Menu

JDBCConnectionException

2010-05-13
2013-04-19
  • Robert Light

    Robert Light - 2010-05-13

    Does anyone know of a way to avoid having your JDBC connection timeout?  When my server goes idle, the connection drops and then subsequent hibernate requests fail with an underlying java.io.EOFException

    I tried adding ?autoReconnect=true to my connection.url but that hasn't worked.
            <property name="connection.url">jdbc:mysql://localhost/mysqlDB?autoReconnect=true</property>

    Any other ideas?  Many thanks.

     
  • Robert Light

    Robert Light - 2010-05-13

    This also happens if the database server gets restarted.  Somehow hibernate needs to re-establish it's connections.

    I'm using the built in hibernate connection pool….perhaps that is too simplistic.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.