I’m pleased to announce the first alpha release of a SQL tool I’ve been using to reverse engineer applications and find out what SQL is called from what code: jdbcGrabber, the JDBC wrapper for SQL analysis.
With this tool, you can sniff SQL as it passes through your application and see stack traces of where it was called from. Its pluggable architecture allows you to also inject your own, custom monitoring code with a minimum of fuss.
Try it out and, as usual, please let me know if you have any feedback or improvements.