I have a Spring application running on the Glassfish Webserver and I’m seeing some very strange behavior in hibernate queries. I would like to be able to see the query AND its parameters, not just the ‘?’ placeholder. How do I do this?
I have tried going in through the admin console, adding and configuring the following loggers to ‘FINEST’ in the server config
- javax.enterprise.system.std.com.sun.enterprise.server.logging
- log4j.logger.org.hibernate.type
I’m still not getting the parameter binding.
How do I do this?
Seems like the only answer is to have Glassfish use log4j.
This article describes how.