tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benoit Wiart <benoit.wi...@gmail.com>
Subject tomcat-jdbc connection return to pool and SQL Warnings
Date Wed, 08 Nov 2017 13:52:54 GMT
Hi,

It looks like Connection#clearWarnings() is not called on the proxied jdbc
connection when the connection is returned to the pool.

Is this something missing or that's a design choice ?

In our use case :
1 - borrow a connection from the pool
2 - use it ->  the driver set a SQLWarning on the connection
3 - return (close) the connection to the pool
4 - borrow a connection from the pool
5 - the connection still has the SQLWarning

Benoit

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message