0

I am using jBoss 5.1.0GA server on which a javaEE application is deployed. I was wondering if there is a way to view the JDBC-SQL queries that are currently executed using console/web-console. I am using mySql 5.5.

Neil Stockton
  • 11,383
  • 3
  • 34
  • 29
codeMan
  • 5,730
  • 3
  • 27
  • 51

1 Answers1

2

If you are using hibernate inside your application then you can turn on the query log as described here: How to print a query string with parameter values when using Hibernate

If you want to see all SQL's regardless of applicationframework you should enable the mysql query log. This is described here: How to enable MySQL Query Log?

Community
  • 1
  • 1
stalet
  • 1,345
  • 16
  • 24