Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 7543 invoked from network); 10 Oct 2005 14:28:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 Oct 2005 14:28:54 -0000 Received: (qmail 7286 invoked by uid 500); 10 Oct 2005 14:28:52 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 7262 invoked by uid 500); 10 Oct 2005 14:28:51 -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 7251 invoked by uid 99); 10 Oct 2005 14:28:51 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Oct 2005 07:28:51 -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; Mon, 10 Oct 2005 07:28:53 -0700 Received: from phys-gadget-1 ([129.156.85.171]) by brmea-mail-4.sun.com (8.12.10/8.12.9) with ESMTP id j9AESTvD003369 for ; Mon, 10 Oct 2005 08:28:29 -0600 (MDT) Received: from conversion-daemon.gadget-mail1.uk.sun.com by gadget-mail1.uk.sun.com (iPlanet Messaging Server 5.2 HotFix 1.24 (built Dec 19 2003)) id <0IO500C01ETTD2@gadget-mail1.uk.sun.com> (original mail from Xavier-Francois.Vigouroux@Sun.COM) for derby-user@db.apache.org; Mon, 10 Oct 2005 15:28:28 +0100 (BST) Received: from [192.168.0.2] (vpn-129-150-117-56.UK.Sun.COM [129.150.117.56]) by gadget-mail1.uk.sun.com (iPlanet Messaging Server 5.2 HotFix 1.24 (built Dec 19 2003)) with ESMTP id <0IO5002DQEVG1I@gadget-mail1.uk.sun.com> for derby-user@db.apache.org; Mon, 10 Oct 2005 15:28:28 +0100 (BST) Date: Mon, 10 Oct 2005 16:29:14 +0200 From: Xavier Vigouroux Subject: Re: transient priviledgeException In-reply-to: To: Derby Discussion Message-id: <0148e67b180903b56799083563ba827f@sun.com> MIME-version: 1.0 (Apple Message framework v623) X-Mailer: Apple Mail (2.623) Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: QUOTED-PRINTABLE References: <02f29e1edfe80e671e61cf73dd6be2d7@sun.com> <5888c9913640e16156181e4994c43d45@sun.com> <200510051149.08338.msegel@segel.com> <257cd592d7d5c57e54dffb9dc69bb79f@sun.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Le 10 oct. 05, =E0 15:50, =D8ystein Gr=F8vlen a =E9crit : >>>>>> "XV" =3D=3D Xavier Vigouroux =20 >>>>>> writes: > > XV> If I understand you, you propose to improve my call to p= ing=20 > with a > XV> loop on the creation (ie. url with create=3Dtrue) of a = =20 > *FAKE* schema > XV> until it succeeds. > > > XV> Then I have to delete all the associated files..... This= is=20 > what I > XV> call a work-around :-) > > Xavier, > > What if you try to connect to a non-existing database without > 'create=3Dtrue'? In that case, no files will be created. I have n= ot > tried this out myself, but maybe you will be able to observe a > different behavior when the db is ready to create a database. E.g, > you get priviledgeException if not yet ready and "Database not foun= d" > when it is ready. In that case you will be able to loop without > having to clean up any files. that's a good point!!! I will try > > Another alternative could be to try do this in the server VM instea= d > of/in addition to ping(). If you are lucky, your getConnection wil= l > in that case not return until it is possible to create a database. > that would be great indeed !!! I keep you inform... thanks > --=20 > =D8ystein > > --=20 Xavier VIGOUROUX - sun microsystems