title: SQL logging in Websphere 6.1
body: <p>I am looking for a tool that Logs SQL statemetns fired in the application as I use the application.</p>
  
  <p>I found p6spy. But there is an issue with that. It doesnt seem to be compatible with XA Datasources.</p>
  
  <p>Is there a way to make p6spy work on Websphere 6.1 OR is there an alternative to p6spy ?</p>
  
  <p>Also, if anyone has any AspectJ code that intercepts the PreparedStatment object and dumps the SQL, that would also be great.</p>