WebApp (Tomcat-jdbc) Pooled DB connection throwing abandon exception

前端 未结 8 2083
被撕碎了的回忆
被撕碎了的回忆 2020-12-08 08:18

I have been browsing SO for some time, and chewing my hat in the process, but cannot find an exact match to my problem.
For short, I am getting superb stack trace (org.a

8条回答
  •  天涯浪人
    2020-12-08 08:57

    If you define your datasource in the context.xml of tomcat then you should add the ResetAbandonedTimer like below :

    jdbcInterceptors="ConnectionState;StatementFinalizer;ResetAbandonedTimer"
    

    After setting ResetAbandonedTimer, issue got resolved in my application, Requesting you to let me know is there any relation between ResetAbandonedTimer interceptor and removeAbandoned="true" removeAbandonedTimeout="60"

提交回复
热议问题