From: Mikko Tiihonen <mikko.tiihonen@nitorcreations.com>
To: pgsql-jdbc@postgresql.org
Subject: Update documentation about Driver loading for Java 6+
Date: Fri, 25 May 2012 18:48:40 +0300
Message-ID: <4FBFA9D8.3010704@nitorcreations.com> (raw)
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
Attachments:documentation-java6-driver-loading-update.patch (text/x-patch, 816B) downloaddiff --git a/doc/pgjdbc.xml b/doc/pgjdbc.xmlindex a13d320..6343025 100644--- a/doc/pgjdbc.xml+++ b/doc/pgjdbc.xml@@ -216,8 +216,16 @@ import java.sql.*;
<sect1 id="load">
<title>Loading the Driver</title>
+ <note>+ <para>+ Starting from Java 6.0 it is enough to add the postgresql driver to the class path+ because the <productname>PostgreSQL</productname> <acronym>JDBC</acronym>+ driver supports the new auto-loading feature. You can safely ignore rest of the section.+ </para>+ </note>+
<para>
- 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.
</para>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: mikko.tiihonen@nitorcreations.com
Subject: Re: Update documentation about Driver loading for Java 6+
In-Reply-To: <4FBFA9D8.3010704@nitorcreations.com>
References: <4FBFA9D8.3010704@nitorcreations.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox