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