From users-return-6342-apmail-jackrabbit-users-archive=jackrabbit.apache.org@jackrabbit.apache.org Fri Feb 01 11:41:45 2008 Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 79717 invoked from network); 1 Feb 2008 11:41:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Feb 2008 11:41:45 -0000 Received: (qmail 72615 invoked by uid 500); 1 Feb 2008 11:41:25 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 72580 invoked by uid 500); 1 Feb 2008 11:41:25 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 72528 invoked by uid 99); 1 Feb 2008 11:41:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Feb 2008 03:41:24 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of james.abley@gmail.com designates 209.85.128.188 as permitted sender) Received: from [209.85.128.188] (HELO fk-out-0910.google.com) (209.85.128.188) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Feb 2008 11:40:56 +0000 Received: by fk-out-0910.google.com with SMTP id b27so1314493fka.11 for ; Fri, 01 Feb 2008 03:41:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=buePCQwavtxQQ9AeJ6jxEnq9DlXFKBNXqACa1GHw4tY=; b=m0huiMHxFwnGCmvk15pgmM3zMNH04OrEljLECdhr0CrO7IPlSLN16klKElyA9gfg0H7E98avDaQNHVCxK3wVUOJgayYbqvr2XRyfq0yIbiUON2aYy0Kx74IrKSb49bBHZI9874yATp8rnZXzErxN/m9PbvbOqJgePvVwbQC2TQE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=lANGXlGSFv0MRwAvNu8EvjZivXFijN54bhyqXOpuefB9DEkh4anJMPhpGpR122FM4EyQDc9omI8fJzkuw1wA+Mw3m9azTTkxwdtX4n2m+VNCj2V05vJRjiq9ge4C3tehh8BWBXSJwHSGXrq/MvTTRQXEDnod6xYeS0FL99b3M0k= Received: by 10.78.160.2 with SMTP id i2mr5886630hue.53.1201866062080; Fri, 01 Feb 2008 03:41:02 -0800 (PST) Received: by 10.78.143.17 with HTTP; Fri, 1 Feb 2008 03:41:02 -0800 (PST) Message-ID: <23fce8e60802010341h20bf2149v1fe1c537b4bff6ad@mail.gmail.com> Date: Fri, 1 Feb 2008 11:41:02 +0000 From: "James Abley" To: users@jackrabbit.apache.org Subject: Re: Shutting down will probably never finish In-Reply-To: <15224405.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <15224405.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org On 01/02/2008, safi wrote: > > Hi, > > I would like to ask why shutting down a repository takes a long long time > and it does not seem that shutting will ever finish. > I access repository from a servlet and what I am trying to do is to close > all sessions. I was said that shutting down whole repository is a way how to > do that. So in a servlet I have this code: > > try { > javax.jcr.Session session = repository.getSession(); > ((org.apache.jackrabbit.api.JackrabbitRepository) > session.getRepository()).shutdown(); > System.out.println("repository has been shut"); > } catch (Exception ex) { > ex.printStackTrace(); > } > > When I call a servlet the code stucks on shutdown() method. "Repository has > been shut" is never printed to the stout. Does anybody know where could be a > problem? How long is 'never' in this case? Maybe it's throwing an Error, not an Exception? Cheers, James