Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 62738 invoked from network); 30 May 2006 15:38:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 30 May 2006 15:38:24 -0000 Received: (qmail 19884 invoked by uid 500); 30 May 2006 15:38:22 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 19793 invoked by uid 500); 30 May 2006 15:38:21 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 19769 invoked by uid 99); 30 May 2006 15:38:21 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 May 2006 08:38:21 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [68.142.198.205] (HELO smtp106.sbc.mail.mud.yahoo.com) (68.142.198.205) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 30 May 2006 08:38:19 -0700 Received: (qmail 26889 invoked from network); 30 May 2006 15:37:58 -0000 Received: from unknown (HELO ?127.0.0.1?) (ddebrunner@sbcglobal.net@71.131.251.73 with plain) by smtp106.sbc.mail.mud.yahoo.com with SMTP; 30 May 2006 15:37:57 -0000 Message-ID: <447C66D2.8010202@apache.org> Date: Tue, 30 May 2006 08:37:54 -0700 From: Daniel John Debrunner User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20040910 X-Accept-Language: en-us, en, de MIME-Version: 1.0 To: derby-dev@db.apache.org Subject: Re: Autoloading of JDBC drivers considered harmful? References: <44778871.4030006@sun.com> In-Reply-To: <44778871.4030006@sun.com> X-Enigmail-Version: 0.90.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Olav Sandstaa wrote: > Hi, > > Based on some of the findings with the Nist tests failing when running > with JDK 1.6 due to autoloading of the embedded driver I am not sure if > it is a good idea to support autoloading of the embedded Derby driver. > > Consider the following example: > > 1. Someone is having a small application that is using (for instance) > the DB2 driver to connect to a Derby database. This application is > running with JDK 1.5. It also happens that all the derby jar files in > the path (afterall they do no harm since they are not used). > > 2. Someone is upgrading to JDK 1.6 and restarting this client > application. It is still running as it should, but if the owner > carefully examines it, she notices that the footprint of the application > has increased and a profiler might show that there are at least one > extra thread running (the Derby anti GC and possibly the background > thread?) - basically the embedded driver and the derby engine might > "automagically" have been loaded into the client depending on where > derby.jar happened to be in the class path. I'm not sure this scenario is a problem. The application upgraded to Derby 10.2 at some point, I hope the 10.2 documentation will indicate that the driver is auto-loaded in a jdk 1.6 environment. Thus this is fully documented behaviour that any application developer must understand. Dan.