Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 7F33CB53E86 for ; Fri, 25 May 2012 12:48:58 -0300 (ADT) Received: from auth-smtp.nebula.fi ([217.30.180.105]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SXwl4-0004I3-NL for pgsql-jdbc@postgresql.org; Fri, 25 May 2012 15:48:57 +0000 Received: from quadvadis.localdomain (gw.nitor.fi [83.145.228.24]) (authenticated bits=0) by auth-smtp.nebula.fi (8.13.8/8.13.4) with ESMTP id q4PFmeVo014095 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 25 May 2012 18:48:41 +0300 Message-ID: <4FBFA9D8.3010704@nitorcreations.com> Date: Fri, 25 May 2012 18:48:40 +0300 From: Mikko Tiihonen User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Update documentation about Driver loading for Java 6+ Content-Type: multipart/mixed; boundary="------------030103040303050209090701" X-Pg-Spam-Score: -2.6 (--) X-Archive-Number: 201205/74 X-Sequence-Number: 22974 This is a multi-part message in MIME format. --------------030103040303050209090701 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi, The following patch updates the documentation to explain that the Driver no longer needs to be manually loaded. See: http://onjava.com/onjava/2006/08/02/jjdbc-4-enhancements-in-java-se-6.html -Mikko --------------030103040303050209090701 Content-Type: text/x-patch; name="documentation-java6-driver-loading-update.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="documentation-java6-driver-loading-update.patch" diff --git a/doc/pgjdbc.xml b/doc/pgjdbc.xml index a13d320..6343025 100644 --- a/doc/pgjdbc.xml +++ b/doc/pgjdbc.xml @@ -216,8 +216,16 @@ import java.sql.*; Loading the Driver + + + Starting from Java 6.0 it is enough to add the postgresql driver to the class path + because the PostgreSQL JDBC + driver supports the new auto-loading feature. You can safely ignore rest of the section. + + + - Before you can connect to a database, you need to load the + In Java 5.0 or older, before you can connect to a database, you need to load the driver. There are two methods available, and it depends on your code which is the best one to use. --------------030103040303050209090701--