Re: context classloader - Mailing list pgsql-jdbc

From Markus Schaber
Subject Re: context classloader
Date
Msg-id 420351A1.2000501@logi-track.com
Whole thread Raw
In response to Re: context classloader  (Oliver Jowett <oliver@opencloud.com>)
List pgsql-jdbc
Hi, Oliver and Vadim,

Oliver Jowett schrieb:

>> More to the point, can someone explain what
>> /org/postgresql/driverconfig.properties files are actually used for?
>
> Briefly, configuring driver defaults globally without having to mess
> around with every application URL.
>
> See http://archives.postgresql.org/pgsql-jdbc/2004-10/msg00023.php for
> the thread that spawned it.

One usage of it is that the new postgis.jar from PostGIS 1.0 includes
such a properties file, this auto-registers the PostGIS data type
extensions (PGobject subclasses) for geometry, box3d and box2d within
the jdbc driver just by throwing the postgis.jar into the classpath.

Note that users still can override this behaviour on a datasource or
connection basis via URL and addDataType().

Markus

--
markus schaber | dipl. informatiker
logi-track ag | rennweg 14-16 | ch 8001 zürich
phone +41-43-888 62 52 | fax +41-43-888 62 53
mailto:schabios@logi-track.com | www.logi-track.com

Attachment

pgsql-jdbc by date:

Previous
From: Kris Jurka
Date:
Subject: Re: Problems with infinity
Next
From: Oliver Siegmar
Date:
Subject: Re: Problems with infinity