Within the next week or so I hope to release a new version of jamon that allows you to monitor a connection and that will automatically track jamon stats (hits/avg/min/max and more) for every query and other aspects of
jdbc such as connection times etc. To enable this you will simply have to do the following. Sign up for the jamon release notices at sourcforge (see link below) and you will be notified when it comes out. I will post on this forum again when it is released too.
The code will be as simple as the following to monitor jdbc (Connections/PreparedStatements/Statements/ResultSets etc, sql, and exceptions thrown.)