Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 58257 invoked from network); 23 Apr 2008 15:00:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Apr 2008 15:00:47 -0000 Received: (qmail 53862 invoked by uid 500); 23 Apr 2008 15:00:47 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 53836 invoked by uid 500); 23 Apr 2008 15:00:47 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 53825 invoked by uid 99); 23 Apr 2008 15:00:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Apr 2008 08:00:47 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Apr 2008 15:00:11 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 7B35F234C0FC for ; Wed, 23 Apr 2008 07:57:21 -0700 (PDT) Message-ID: <1887445109.1208962641503.JavaMail.jira@brutus> Date: Wed, 23 Apr 2008 07:57:21 -0700 (PDT) From: "Thomas Mueller (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Created: (JCR-1551) TransientRepository: application doesn't exist quickly MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org TransientRepository: application doesn't exist quickly ------------------------------------------------------ Key: JCR-1551 URL: https://issues.apache.org/jira/browse/JCR-1551 Project: Jackrabbit Issue Type: Bug Components: jackrabbit-core Reporter: Thomas Mueller Assignee: Thomas Mueller Priority: Minor When using the TransientRepository, the repository should be closed when the last session logs out. This works, but in some cases there is a very long (60 seconds) delay between closing the last session and closing the repository. Test case: public static void main(String[] args) throws Exception { Repository repository = new TransientRepository(); Session session = repository.login(new SimpleCredentials("", new char[0])); session.getRootNode().setProperty("a", "0"); session.save(); // very quick logout without this line session.logout(); System.out.println("Logout..."); final long time = System.currentTimeMillis(); Runtime.getRuntime().addShutdownHook(new Thread() { public void run() { System.out.println("End after: " + (System.currentTimeMillis() - time)); } }); } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.