Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 49904 invoked from network); 22 Oct 2009 09:51:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Oct 2009 09:51:28 -0000 Received: (qmail 83511 invoked by uid 500); 22 Oct 2009 09:51:28 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 83431 invoked by uid 500); 22 Oct 2009 09:51:28 -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 83423 invoked by uid 99); 22 Oct 2009 09:51:28 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Oct 2009 09:51:28 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of mreutegg@day.com designates 207.126.148.181 as permitted sender) Received: from [207.126.148.181] (HELO eu3sys201aog001.obsmtp.com) (207.126.148.181) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 22 Oct 2009 09:51:19 +0000 Received: from source ([209.85.220.208]) by eu3sys201aob001.postini.com ([207.126.154.11]) with SMTP ID DSNKSuArAilCzdeZhtLVM4cON5evTEZVbbUI@postini.com; Thu, 22 Oct 2009 09:50:58 UTC Received: by fxm4 with SMTP id 4so9808882fxm.16 for ; Thu, 22 Oct 2009 02:50:58 -0700 (PDT) MIME-Version: 1.0 Sender: mreutegg@day.com Received: by 10.204.26.147 with SMTP id e19mr9188100bkc.149.1256205058384; Thu, 22 Oct 2009 02:50:58 -0700 (PDT) In-Reply-To: <4AE01F6C.7090100@gmail.com> References: <510143ac0910200811g1bf00847q7e43159b4d8b8de0@mail.gmail.com> <4AE01F6C.7090100@gmail.com> Date: Thu, 22 Oct 2009 11:50:58 +0200 X-Google-Sender-Auth: 50d72b95b597fad8 Message-ID: Subject: Re: Generic JCR repository factory From: Marcel Reutegger To: dev@jackrabbit.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On Thu, Oct 22, 2009 at 11:01, Felix Meschberger wrote: > We *always* need some kind of lifecycle: Even if you just *connect* to a > repository, you want to be able to explicitly *disconnect* from the > repository -- and don't tell me "stop the application to disconnect" ;-) that's correct for Session where you use logout but not for Repository. If you connect to a remote repository, the Repository instance usually just holds the information how a session can connect to the remote repository on login. the repository instance itself usually does not hold resources. so, you just leave it to the GC to do the cleanup. regards marcel