X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 6CBCBD1B23C for ; Fri, 16 Jul 2004 07:50:41 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 65157-09 for ; Fri, 16 Jul 2004 10:50:40 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id 07A64D1B233 for ; Fri, 16 Jul 2004 07:50:36 -0300 (ADT) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=opencloud.com) by yass.opencloud.co.nz with asmtp (Exim 3.35 #1 (Debian)) id 1BlQIX-0002TX-00; Fri, 16 Jul 2004 22:50:37 +1200 Message-ID: <40F7B2FA.8070508@opencloud.com> Date: Fri, 16 Jul 2004 22:50:34 +1200 From: Oliver Jowett User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Kris Jurka Cc: pgsql-jdbc@postgresql.org Subject: Re: Adding JDK1.5 removing 1.1 support. References: <40F748AB.2060301@opencloud.com> <40F798E4.6050703@opencloud.com> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.1 tagged_above=0.0 required=5.0 tests=RCVD_IN_SORBS X-Spam-Level: X-Archive-Number: 200407/207 X-Sequence-Number: 10591 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