P6Spy is an open source framework for applications that intercept and optionally modify database statements. P6Spy includes P6Log, an application that intercepts and logs
the database statements of any application that uses JDBC. This application is particularly useful for developers to monitor the SQL statements produced by EJB servers,
enabling the developer to write code that achieves maximum efficiency on the server. P6Spy installs in minutes and requires no code changes to applications.