jdbc - how to handle java.sql.SQLRecoverableException -
we getting exception of java.sql.sqlrecoverableexception: no more data read socket
in our application, making connection corrupted. after this, not able fetch connection connection pool , displaying error connection closed
. mitigating issue restarting server. found root cause of issue in 1 area of our application, calling procedure calling external db link , if external db down, 'java.sql.sqlrecoverableexception: no more data read socket` expected behavior.
here problem is: procedure calling part of application, affecting whole connections in connection pool. there way handle exception in specific part (where exception thrown) should not affect connection pool?
note: code closing connection implemented in code.
Comments
Post a Comment