Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 49216 invoked from network); 3 Feb 2010 14:36:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Feb 2010 14:36:56 -0000 Received: (qmail 55771 invoked by uid 500); 3 Feb 2010 14:36:55 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 55706 invoked by uid 500); 3 Feb 2010 14:36:55 -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 55695 invoked by uid 99); 3 Feb 2010 14:36:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Feb 2010 14:36:55 +0000 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [192.18.6.24] (HELO gmp-eb-inf-2.sun.com) (192.18.6.24) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Feb 2010 14:36:46 +0000 Received: from fe-emea-09.sun.com (gmp-eb-lb-1-fe1.eu.sun.com [192.18.6.7] (may be forged)) by gmp-eb-inf-2.sun.com (8.13.7+Sun/8.12.9) with ESMTP id o13EaOOT020319 for ; Wed, 3 Feb 2010 14:36:24 GMT MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII Received: from conversion-daemon.fe-emea-09.sun.com by fe-emea-09.sun.com (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul 2 2009)) id <0KX900700QOZC300@fe-emea-09.sun.com> for derby-user@db.apache.org; Wed, 03 Feb 2010 14:36:10 +0000 (GMT) Received: from localhost ([unknown] [129.159.112.134]) by fe-emea-09.sun.com (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul 2 2009)) with ESMTPSA id <0KX900AZUSK3H890@fe-emea-09.sun.com> for derby-user@db.apache.org; Wed, 03 Feb 2010 14:36:04 +0000 (GMT) Date: Wed, 03 Feb 2010 15:36:03 +0100 From: Knut Anders Hatlen Subject: Re: how to get rid of the derby.rawStoreDaemon thread In-reply-to: <012d01caa4db$98557190$c90054b0$%paasiala@solibri.com> Sender: Knut.Hatlen@Sun.COM To: Derby Discussion Message-id: Organization: Sun Microsystems References: <011d01caa4cf$3f60bb50$be2231f0$%paasiala@solibri.com> <4B6977F2.5010902@Sun.COM> <012d01caa4db$98557190$c90054b0$%paasiala@solibri.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (usg-unix-v) Pasi Paasiala writes: > I also tried the DriverManager.getConnection("jdbc:derby:;shutdown=true"); > and it seemed to work. > The only problem is that it always seems to throw an exception. Is that > something to be expected? If so, then I just catch it and don't worry about > it. Hi Pasi, The exception on shutdown is expected, so catching and ignoring it should be fine. For good measure, you may want to check that the SQLException has the expected SQLState (which I don't remember off the top of my head) before ignoring it. You may find the section on shutdown in the developer's guide helpful, see here: http://db.apache.org/derby/docs/10.5/devguide/tdevdvlp40464.html -- Knut Anders