Hello,
I tried to set this up, and the log file is created, but nothing
is ever written to it. My servlet, which gets loaded at startup, looks
like this:
import javax.servlet.http.HttpServlet;
import javax.sql.DataSource;
import javax.naming.Context;
import javax.naming.InitialContext;
Attila,
Thanks alot. I believe this is what I need, but I am going to
trouble you with one more question: Where would you recommend doing
this in a web application? I was hoping that there would be somewhere
to set a log file in the definition of the datasource. I assume I only
need
Bill,
I do just that, i.e. open the log file for writing in the init() method of a
dumb servlet that gets preloaded at startup. I pick up the path/filename of
the log file from a context-param which I set in web.xml (and override in
orion-web.xml if necessary).
A better way to do all this
speaking of logging, can anyone explain the best way to see all the JDBC SQL
activity my servlets are causing? Maybe someone has a link that explains the
basics...
Thanks Much
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Attila Bodis
Sent: Friday,
Hello,
I am curious on how to set up logging for JDBC. I thought there
would be a parameter in the data-source definition that would allow
logging. Does this exist?
Bill
btw: I am using oracle
Start OC4J with -Djdbc.debug=true this turns on Orion JDBC debug
information.
Cheers,
Ashok
Bill Clinton wrote:
Hello,
I am curious on how to set up logging for JDBC. I thought there
would be a parameter in the data-source definition that would allow
logging. Does this exist?
Bill