Skip site navigation (1) Skip section navigation (2)

Re: Adding JDK1.5 removing 1.1 support.

From: Oliver Jowett <oliver(at)opencloud(dot)com>
To: Kris Jurka <books(at)ejurka(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Adding JDK1.5 removing 1.1 support.
Date: 2004-07-16 10:50:34
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-jdbc
Kris Jurka wrote:

> The problem is that the 1.5 JDK has changed 
> the API for ObjectFactory which means that PGObjectFactory and 
> Jdbc3ObjectFactory cannot be compiled at the moment.

Aha, I see. generics strike again.

We could deal with the non-pooling datasources by no longer implementing 
Referenceable and relying on serialization to preserve state. Then we do 
not need an ObjectFactory at all.

For pooling DataSources (I mean jdbc2.optional.PoolingDataSource, not 
jdbc2.optional.ConnectionPool -- those are badly named!) we could 
implement readResolve()/writeReplace() to translate to/from a lookup 
handle into the registry of known pools when serialized. But that gets a 
bit hairy. It's probably simpler to just do conditional compilation of 
the signature of PGObjectFactory.getObjectInstance() if we want to 
support the pooling DataSources.

I'm actually tempted to drop the pooling DataSource implementations 
altogther. Does anyone on the list actually use these? I think the more 
common approach is for a higher layer to use our 
ConnectionPoolDataSource implementation (or plain DataSource, even) plus 
their own pooling logic..


In response to


pgsql-jdbc by date

Next:From: Stefano BonninDate: 2004-07-16 11:00:50
Subject: Fw: SSL Problem
Previous:From: Kris JurkaDate: 2004-07-16 09:38:39
Subject: Re: Adding JDK1.5 removing 1.1 support.

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group