greg,
Use a ConnectionPoolDataSource, then Orion will return a different data
source.
Dave
-Original Message-
From: Greg Kogan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 13, 2001 12:41 PM
To: Orion-Interest
Subject: DataSource question
I have run into a problem where the
og4j, but I haven't had a
> chance to look into it in any depth.
>
> Hope this helps,
>
> Attila
>
>
>
> - Original Message -
> From: "Bill Clinton" <[EMAIL PROTECTED]>
> To: "Orion-Interest" <[EMAIL PROTECTED]&
, July 20, 2001 9:49 AM
To: Orion-Interest
Subject: Re: Datasource Question - is there a way to setup a JDBC log
file?
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
would be to use log4j, but I haven't had a
chance to look into it in any depth.
Hope this helps,
Attila
- Original Message -
From: "Bill Clinton" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Friday, July 20, 2001 6:50 AM
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 t
Bill,
// Use JNDI lookup to locate the data source:
InitialContext ctx = new InitialContext(System.getProperties());
DataSource ds = (DataSource)ctx.lookup(dsName);
// Have the connection pool log to the specified log file:
ds.setLogWriter(myPrintWriter);
Where dsN
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?
>
> Bi