https://issues.apache.org/bugzilla/show_bug.cgi?id=56318
--- Comment #8 from Filip Hanik <fha...@apache.org> --- (In reply to Danila Galimov from comment #7) > Thank you :-) > > Ideally I would like to have something like stacktrace of statement opening, > and stacktrace of connection close, so when connection is closed, all of the > opened and not closed prepared statments, connections, result sets e.t.c > will be printed with creation trace, so I will be able to check this. > > Is it possible to do with currently available jdbc interceptors (or maybe I > need to setup something like proxy jdbc drivers) ? > > Unfortunately the project is very big and we're using a lot of libraries, so > it's hard to get the exact place without logging. Writing your own is very simple, take a look at the code for the StatementFinalizer http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/interceptor/StatementFinalizer.java?view=markup And you can easily add in options to track stack traces. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org