Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 66151 invoked from network); 19 Jun 2006 21:10:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Jun 2006 21:10:25 -0000 Received: (qmail 56455 invoked by uid 500); 19 Jun 2006 21:10:24 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 56423 invoked by uid 500); 19 Jun 2006 21:10:23 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 56412 invoked by uid 99); 19 Jun 2006 21:10:23 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Jun 2006 14:10:23 -0700 X-ASF-Spam-Status: No, hits=1.9 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [32.97.182.141] (HELO e1.ny.us.ibm.com) (32.97.182.141) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Jun 2006 14:10:22 -0700 Received: from d01relay02.pok.ibm.com (d01relay02.pok.ibm.com [9.56.227.234]) by e1.ny.us.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id k5JLA1Ou014100 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Mon, 19 Jun 2006 17:10:01 -0400 Received: from d01av02.pok.ibm.com (d01av02.pok.ibm.com [9.56.224.216]) by d01relay02.pok.ibm.com (8.13.6/NCO/VER7.0) with ESMTP id k5JLA1bR283850 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 19 Jun 2006 17:10:01 -0400 Received: from d01av02.pok.ibm.com (loopback [127.0.0.1]) by d01av02.pok.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id k5JLA0qI021184 for ; Mon, 19 Jun 2006 17:10:00 -0400 Received: from [127.0.0.1] (sig-9-49-134-167.mts.ibm.com [9.49.134.167]) by d01av02.pok.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id k5JL9uLH020906 for ; Mon, 19 Jun 2006 17:10:00 -0400 Message-ID: <449712A1.8090507@sbcglobal.net> Date: Mon, 19 Jun 2006 14:09:53 -0700 From: Kathey Marsden User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.13) Gecko/20060414 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Derby Discussion Subject: Re: Self-configuring embedded Derby applications References: <4496C7D1.4050508@sun.com> In-Reply-To: <4496C7D1.4050508@sun.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed 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 Rick Hillegas wrote: > > I would like to understand if anyone thinks that they might be > affected by the following issue. This issue affects customers who do > the following: > > o Run an embedded Derby application which generates its own Derby > properties on the fly. > > o In the same VM, run other JDBC applications. These other > applications could request Connections to DB2, Oracle, Derby, or any > other database. > > In general, we recommend against generating Derby properties on the > fly. This general problem is described in DERBY-1428. However, the > Derby mainline (slated to become release 10.2) expands this problem, > as described in DERBY-1429. For a workaround, see the Release Note > attached to DERBY-930. > I think DERBY-1428 and DERBY-149 are not really related to generating derby.properties on the fly they are related to when Derby boots and when derby.system.home is recognized. derby.system.home *has* to be set with a system property. Anyone who sets derby.system.home or static derby properties programatically with System.setProperty() may be affected if they do not have control over their calling context. Another driver might cause derby to be autoloaded before these properties are set. Perhaps these issues would be better worded as: "Derby can have non-deterministic behaviour when derby.system.home or other static properties are set with System.setProperty()" More common reported symptoms will likely be after upgrading to Derby 10.2 and JDK 1.6 users will report the following systems because derby.system.home is not picked up properly. - I get XJ004.C=Database ''...'' not found. (Derby is looking in the wrong place for the db) - There is nothing in my database. (create=true was on the url and so app created a new db in the wrong place) - My database was created in the wrong place. - Properties set in derby.properties are not being picked up. Some more info: http://www.nabble.com/Re%3A--jira--Commented%3A-%28DERBY-930%29-Add-support-for-autoloading-of-Derby-client-drivers-p4909085.html Kathey