I am trying to print out the SQL statement that my EJB uses to create record in the database into a log file.
Does anyone have any experience to do this.
thank you.
Cheers,
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Check the documentation/FAQ for your driver. For example, if you’re using Oracle’s driver, these may help:
Oracle JDBC Trace Facility
java.util.logging
If you’re using the WebLogic driver:
Tracking JDBC Calls with WebLogic JDBC Spy