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 360FB3A3BAC for ; Mon, 8 Nov 2004 09:21:37 +0000 (GMT) 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 91667-10 for ; Mon, 8 Nov 2004 09:21:26 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id B45463A3B7A for ; Mon, 8 Nov 2004 09:21:27 +0000 (GMT) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=[192.168.0.20]) by yass.opencloud.co.nz with asmtp (Exim 3.35 #1 (Debian)) id 1CR5i5-0005CB-00; Mon, 08 Nov 2004 22:21:13 +1300 Message-ID: <418F3B19.9000708@opencloud.com> Date: Mon, 08 Nov 2004 22:23:37 +1300 From: Oliver Jowett User-Agent: Mozilla Thunderbird 0.8 (X11/20041021) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Kris Jurka Cc: Markus Schaber , pgsql-jdbc@postgresql.org Subject: Re: Avoiding explicit addDataType calls for PostGIS References: <20041006181653.4fc83924@kingfisher.intern.logi-track.com> <41645F7A.2040106@opencloud.com> <20041007104603.78af41f3@kingfisher.intern.logi-track.com> <416B63BF.4090304@opencloud.com> <417588E7.7020205@opencloud.com> <20041103122816.1c6ab2de@kingfisher.intern.logi-track.com> <418939E6.7030602@opencloud.com> <20041104113056.5a906179@kingfisher.intern.logi-track.com> <418F3340.306@opencloud.com> In-Reply-To: X-Enigmail-Version: 0.86.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200411/72 X-Sequence-Number: 11494 Kris Jurka wrote: > Let me be more clear. I like the properties file method for configuring > external libraries (postgis), but I don't like it for configuring the > driver itself. Specifically consider your addition of prepareThreshold=5, > suppose I wanted to override this setting with my own properties file. > Then I'd have to be real careful about how I setup my classpath. Ah, ok. Currently, if someone wants to change a default, they have to either modify the driver source and recompile, or remember to override the built-in default in every single URL ever used. If the default is stored in a properties file packaged with the driver, they can tweak the default by editing that properties file, which seems much easier. I agree that trying to manage multiple properties files that override each other is confusing, because it's so dependent on what the classloader decides to do. So don't do that! -O