Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 32390 invoked from network); 15 Sep 2005 05:12:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 15 Sep 2005 05:12:42 -0000 Received: (qmail 83352 invoked by uid 500); 15 Sep 2005 05:12:41 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 83324 invoked by uid 500); 15 Sep 2005 05:12:40 -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 83311 invoked by uid 99); 15 Sep 2005 05:12:40 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Sep 2005 22:12:40 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [192.18.98.36] (HELO brmea-mail-4.sun.com) (192.18.98.36) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Sep 2005 22:12:50 -0700 Received: from phys-biff-2 ([129.158.227.37]) by brmea-mail-4.sun.com (8.12.10/8.12.9) with ESMTP id j8F5CbXX027189 for ; Wed, 14 Sep 2005 23:12:38 -0600 (MDT) Received: from conversion-daemon.biff-mail1.india.sun.com by biff-mail1.india.sun.com (iPlanet Messaging Server 5.2 HotFix 1.24 (built Dec 19 2003)) id <0IMU00201EFSV7@biff-mail1.india.sun.com> (original mail from Shreyas.Kaushik@Sun.COM) for derby-user@db.apache.org; Thu, 15 Sep 2005 10:42:37 +0530 (IST) Received: from [129.158.229.17] (raga.India.Sun.COM [129.158.229.17]) by biff-mail1.india.sun.com (iPlanet Messaging Server 5.2 HotFix 1.24 (built Dec 19 2003)) with ESMTP id <0IMU00M9SEH0DG@biff-mail1.india.sun.com> for derby-user@db.apache.org; Thu, 15 Sep 2005 10:42:36 +0530 (IST) Date: Thu, 15 Sep 2005 10:49:18 +0530 From: Shreyas Kaushik Subject: Re: DriverManager question In-reply-to: <20050914174810.47440.qmail@web30605.mail.mud.yahoo.com> To: Derby Discussion Message-id: <43290456.6030409@Sun.com> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT X-Accept-Language: en-us, en User-Agent: Mozilla Thunderbird 1.0.6-1.1.fc3 (X11/20050720) References: <20050914174810.47440.qmail@web30605.mail.mud.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi Suavi, Some changes have gone in as a part of Mustang ( Java SE 6) where this *synchronized* has been done away with. We targeted particularly the reason you are giving why it should not be synchronized. thanks Shreyas Suavi Ali Demir wrote: > A different question: > > DriverManager.getConnection() is synchronized. If database A does not > respond, we cannot get a connection to another database B neither. > (Blocks the whole system). Is it advisable to use Driver.connect() and > side step DriverManager? > > Regards, > Suavi > > > */Daniel John Debrunner /* wrote: > > Suavi Ali Demir wrote: > > > After a shutdown=true, you should be able to connect to the same > > database again after doing a DriverManager.registerDriver( > > Class.forName(driverName).newInstance() ) > > No, that's not the correct way to start Derby or any other JDBC > driver. > JDBC drivers are required to register themselves, applications should > not be registering drivers. > Simply loading the driver and creating an instance of it will start > Derby again. > > Class.forName(driverName).newInstance(); > > Dan. > >