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.
Asked
Active
Viewed 465 times
1 Answers
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?