我正在使用Play Framework 2.2.1、MySQL 5.5和sorm 0.3.10
由于 MySQL 在指定的空闲超时后丢弃非活动连接,我在我的应用程序中收到此异常:
[CommunicationsException: Communications link failure The last packet successfully received from the server was 162 701 milliseconds ago. The last packet sent successfully to the server was 0 milliseconds ago.]
据我了解,sorm 使用的是 c3p0 连接池。是否可以以某种方式配置 c3p0 或 sorm 以指定延迟踢 mysql 或在连接断开后自动重新连接?