p6spy
Framework that enables database data to be seamlessly intercepted
P6Spy is a framework that enables database data to be seamlessly intercepted and logged with no code changes to existing applications. The P6Spy distribution includes P6Log, an application that logs all JDBC transactions for any Java application.