我使用的是Hibernate3.2+Websphere6.0+struts1.3..
部署后,应用程序运行正常。经过一段空闲时间后,我会反复收到此类错误,根本无法登录。我没有使用任何连接池。我觉得空闲时间后它无法再次连接到数据库..如果我重新启动服务器,一切都会正常工作一段时间...在同样的故事之后..请帮助我
看看什么 https://www.hibernate.org/214.html关于testConnectionOnCheckout不得不说一下:
Don't use it, this feature is very expensive. If set to true, an operation will be performed at every connection checkout to verify that the connection is valid. A better choice is to verify connections periodically using c3p0.idleConnectionTestPeriod.
我也遇到了这个问题,如果我没记错的话,我确实通过调整idleConnectionTestPeriod解决了这个问题。
我是一名优秀的程序员,十分优秀!