Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 4C0DC632BC8 for ; Sat, 30 Jan 2010 20:22:44 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 27166-04 for ; Sun, 31 Jan 2010 00:22:26 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from tremor.opencloud.co.nz (tremor.opencloud.co.nz [131.203.101.230]) by mail.postgresql.org (Postfix) with ESMTP id 8375D63249E for ; Sat, 30 Jan 2010 20:22:33 -0400 (AST) Received: from 121-98-80-66.bitstream.orcon.net.nz ([121.98.80.66] helo=[192.168.1.4]) by tremor.opencloud.co.nz with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1NbNa5-0002Ru-G1; Sun, 31 Jan 2010 13:22:25 +1300 Message-ID: <4B64CD3B.7010003@opencloud.com> Date: Sun, 31 Jan 2010 13:22:19 +1300 From: Oliver Jowett User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: Richard Troy CC: pgsql-jdbc@postgresql.org Subject: Re: driver initialization and connection separation References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=AWL=0.000, BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201001/85 X-Sequence-Number: 20281 Richard Troy wrote: > I got the > connectivity working just fine, thank you, but when I then asked the > application to switch between encrypted and non-encrypted connections, it > "broke." What were you trying to do exactly, and how did it break? > A modest amount of testing showed that when the app. attempted to > reload the driver, the Postgres JDBC driver wasn't initializing as > outlined here: > > http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Class.html#forName%28java.lang.String%29 Well, classes only ever get initialized once. -O