Return-Path: X-Original-To: apmail-jackrabbit-users-archive@minotaur.apache.org Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4D38F4B8B for ; Mon, 6 Jun 2011 19:04:39 +0000 (UTC) Received: (qmail 55376 invoked by uid 500); 6 Jun 2011 19:04:37 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 55343 invoked by uid 500); 6 Jun 2011 19:04:37 -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 55294 invoked by uid 99); 6 Jun 2011 19:04:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Jun 2011 19:04:37 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of michael.anstis@gmail.com designates 209.85.210.170 as permitted sender) Received: from [209.85.210.170] (HELO mail-iy0-f170.google.com) (209.85.210.170) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Jun 2011 19:04:33 +0000 Received: by iyb12 with SMTP id 12so6942366iyb.1 for ; Mon, 06 Jun 2011 12:04:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=jB75e92ANLH7r9rgUllPvYiMtj5oCiIAIpsVzJdhWOQ=; b=LqAaLa8/zEVM6Twnqen7sOqe7hX6IYoAhArzGee7iXIHnHzQam4RZ9C9GCH80ionhu Si+xq4iMauQy13ezTfh9Nb/8KO1u2cBlSC/p32Fm5h77K9F2IUqqhDLIypd9/7vx+WJ9 fIMGHNPuw5sPxPTZI+we7uN6HJoVmYqoLz8z0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=qJtgn+SL/8FJsdd7n8zAN0Q32J2KJ/WAWR/2bNXDpWriBeRohNRoe8ewdtCRZh2Drw koWqVhO2qbiI8XapsZA2n7xHLnBSCDH8OMx8e+n3Ifi6jjnd8eunhhvtXyk48OCVI4TM ryZnhOkXLXDDm5FczqfWYpEhtFFFhpeVLk6EY= MIME-Version: 1.0 Received: by 10.231.162.73 with SMTP id u9mr8154436ibx.97.1307387052400; Mon, 06 Jun 2011 12:04:12 -0700 (PDT) Received: by 10.231.39.138 with HTTP; Mon, 6 Jun 2011 12:04:12 -0700 (PDT) In-Reply-To: <201106061823.18030.herve.agnoux@diaam-informatique.com> References: <201106061823.18030.herve.agnoux@diaam-informatique.com> Date: Mon, 6 Jun 2011 20:04:12 +0100 Message-ID: Subject: Re: I set a TransientRepository, I get a RepositoryImpl ? From: Michael Anstis To: users@jackrabbit.apache.org Content-Type: multipart/alternative; boundary=005045013c9fd7a2b504a50fc43a --005045013c9fd7a2b504a50fc43a Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable IIRC, TransientRepository automatically shutsdown when there are no sessions. 2011/6/6 Herv=E9 Agnoux > Le lundi 6 juin 2011, Thomas Mueller a =E9crit : > > Hi, > > > > Actually, the Javadoc for Session.getRepository() is: "Returns the > > Repository object through which this session was acquired." - > > http://www.day.com/maven/javax.jcr/javadocs/jcr-2.0/index.html - so I > > guess the Jackrabbit isn't spec compliant when using the > > TransientRepository. > > > > +1 for me ! > > > > But I would also be interested in the use case (more than anything else= ). > > > > It's not a business use case, it's a coding stuff :-) > > I say in my head : "I don't need to declare a variable for the repository= , > because I've session.getRepository(). So, I only need to declare a variab= le > for session". > > I need to downcasting because there is no shutdown method in > javax.jcr.Repository. > > And it's all. Sorry, my fault :-) > > --005045013c9fd7a2b504a50fc43a--