users@glassfish.java.net

Re: How to enable SQL tracing in Glassfish V3. Which listener class to use?

From: <glassfish_at_javadesktop.org>
Date: Tue, 26 Jan 2010 20:19:18 PST

You can set the "listener" to "com.sun.gjc.util.SQLTraceLogger" and sql statements will be logged in server.log

asadmin set domain1.resources.jdbc-connection-pool.DerbyPool.sql-trace-listeners=com.sun.gjc.util.SQLTraceLogger
[Message sent by forum member 'jr158900' (Jagadish.Ramu_at_Sun.com)]

http://forums.java.net/jive/thread.jspa?messageID=383166