Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 98133 invoked from network); 2 Jun 2005 18:21:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Jun 2005 18:21:00 -0000 Received: (qmail 45596 invoked by uid 500); 2 Jun 2005 18:20:59 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 45539 invoked by uid 500); 2 Jun 2005 18:20:59 -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: "Derby Development" Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 45502 invoked by uid 99); 2 Jun 2005 18:20:58 -0000 X-ASF-Spam-Status: No, hits=0.4 required=10.0 tests=SPF_HELO_FAIL X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from over.ny.us.ibm.com (HELO over.ny.us.ibm.com) (32.97.182.150) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 02 Jun 2005 11:20:56 -0700 Received: from e34.co.us.ibm.com (e34.esmtp.ibm.com [9.14.4.132]) by pokfb.esmtp.ibm.com (8.12.11/8.12.11) with ESMTP id j52EOqL0005226 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK) for ; Thu, 2 Jun 2005 10:24:53 -0400 Received: from westrelay02.boulder.ibm.com (westrelay02.boulder.ibm.com [9.17.195.11]) by e34.co.us.ibm.com (8.12.10/8.12.9) with ESMTP id j52ENV8E429844 for ; Thu, 2 Jun 2005 10:23:31 -0400 Received: from d03av03.boulder.ibm.com (d03av03.boulder.ibm.com [9.17.195.169]) by westrelay02.boulder.ibm.com (8.12.10/NCO/VER6.6) with ESMTP id j52ENLuC230778 for ; Thu, 2 Jun 2005 08:23:31 -0600 Received: from d03av03.boulder.ibm.com (loopback [127.0.0.1]) by d03av03.boulder.ibm.com (8.12.11/8.13.3) with ESMTP id j52ENLgV000690 for ; Thu, 2 Jun 2005 08:23:21 -0600 Received: from [127.0.0.1] (sig-9-48-121-137.mts.ibm.com [9.48.121.137]) by d03av03.boulder.ibm.com (8.12.11/8.12.11) with ESMTP id j52EMVYq030126 for ; Thu, 2 Jun 2005 08:23:08 -0600 Message-ID: <429F1622.7080306@debrunners.com> Date: Thu, 02 Jun 2005 07:22:26 -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 MIME-Version: 1.0 To: Derby Development Subject: Re: Use of DriverManager in tests References: In-Reply-To: X-Enigmail-Version: 0.90.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N �ystein Gr�vlen wrote: > When developing a test for Derby-230, I was made aware of that we > should not use the DriverManager directly, but instead use > startJBMS(). However, I see some test (e.g., > store/backupRestore1.java) that uses the DriverManager when shutting > down the database and when doing restore. I am currently working on a > test for Derby-298 that needs to do the same. Is it OK to do it this > way? What restriction does it impose on which environment the test > can be run in? J2ME does not suport DriverManager. This is because the JDBC JSR169 subset only supports javax.sql.DataSource as the connection mechanism. I currently have the test suite running under J2ME with about a 50% pass rate. Many of those failures are due to use of DriverManager, which I will look at fixing in one way or another. So at the momeent I would request anyone to minimize use of DriverManager, but if it is needed then use it. Dan.