pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: Kris Jurka <books@ejurka.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Adding JDK1.5 removing 1.1 support.
Date: Fri, 16 Jul 2004 22:50:34 +1200
Message-ID: <40F7B2FA.8070508@opencloud.com> (raw)
In-Reply-To: <Pine.BSO.4.56.0407160418320.4736@leary.csoft.net>
References: <Pine.BSO.4.56.0407150739290.22178@leary.csoft.net>
	<40F748AB.2060301@opencloud.com>
	<Pine.BSO.4.56.0407160325350.4736@leary.csoft.net>
	<40F798E4.6050703@opencloud.com>
	<Pine.BSO.4.56.0407160418320.4736@leary.csoft.net>

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..

-O



view thread (8+ messages)  latest in thread

Message-ID: <40F7B2FA.8070508@opencloud.com>
Permalink:  ../40F7B2FA.8070508@opencloud.com/
Also on:    postgresql.org/message-id/40F7B2FA.8070508@opencloud.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: oliver@opencloud.com, books@ejurka.com
  Subject: Re: Adding JDK1.5 removing 1.1 support.
  In-Reply-To: <40F7B2FA.8070508@opencloud.com>
  References: <Pine.BSO.4.56.0407150739290.22178@leary.csoft.net> <40F748AB.2060301@opencloud.com> <Pine.BSO.4.56.0407160325350.4736@leary.csoft.net> <40F798E4.6050703@opencloud.com> <Pine.BSO.4.56.0407160418320.4736@leary.csoft.net> <40F7B2FA.8070508@opencloud.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox