Re: pgsql XA with weblogic 8.1? - Mailing list pgsql-jdbc

From Oliver Jowett
Subject Re: pgsql XA with weblogic 8.1?
Date
Msg-id 439619AA.6010706@opencloud.com
Whole thread Raw
In response to Re: pgsql XA with weblogic 8.1?  (Heikki Linnakangas <hlinnaka@iki.fi>)
List pgsql-jdbc
Heikki Linnakangas wrote:
> On Tue, 6 Dec 2005, Jan de Visser wrote:
>
>> On Tuesday 29 November 2005 00:50, Kris Jurka wrote:
>>
>>> Any chance you could send us a log trace using
>>> Oliver's new logging code in 8.2dev with loglevel=2?
>>
>>
>> Anybody care to explain how I set that up using a DataSource? There
>> does not
>> seem to be a setLogLevel on BaseDataSource, and I can't use a URL
>> either...

Unfortunately the DataSource stuff has been a bit neglected when it
comes to connection parameters, there's lots of stuff you can't set there :(

> Doesn't seem to be directly possible. The loglevel variables are static
> however, so you should be able to just call
> org.postgresql.Driver.setLogLevel, unless there's some classloader issues.

They're now actually per-connection, but if you set a level at the
Driver level that becomes the default for new connections.

Or you can create a properties file called
"org/postgresql/driverconfig.properties" and put it in the driver's
classpath, and the driver will load defaults for all properties from there.

-O

pgsql-jdbc by date:

Previous
From: Oliver Jowett
Date:
Subject: Re: bug with 8.X level 4 driver?
Next
From: "Tea Yu"
Date:
Subject: Re: JDBC executeUpdate returns 0 for table partitioning rule insertion