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 6BCA74DD9 for ; Mon, 6 Jun 2011 19:01:52 +0000 (UTC) Received: (qmail 46456 invoked by uid 500); 6 Jun 2011 19:01:51 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 46435 invoked by uid 500); 6 Jun 2011 19:01:51 -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 46427 invoked by uid 99); 6 Jun 2011 19:01:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Jun 2011 19:01:51 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: 212.27.42.2 is neither permitted nor denied by domain of herve.agnoux@diaam-informatique.com) Received: from [212.27.42.2] (HELO smtp2-g21.free.fr) (212.27.42.2) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Jun 2011 19:01:44 +0000 Received: from localhost.localnet (unknown [82.237.232.112]) by smtp2-g21.free.fr (Postfix) with ESMTP id B32704B0217 for ; Mon, 6 Jun 2011 21:01:19 +0200 (CEST) From: =?iso-8859-1?q?Herv=E9_Agnoux?= To: users@jackrabbit.apache.org Subject: Re: I set a TransientRepository, I get a RepositoryImpl ? Date: Mon, 6 Jun 2011 18:23:17 +0200 User-Agent: KMail/1.13.3 (Linux/2.6.33.7-server-2mnb; KDE/4.4.3; i686; ; ) References: In-Reply-To: MIME-Version: 1.0 Message-Id: <201106061823.18030.herve.agnoux@diaam-informatique.com> Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Le lundi 6 juin 2011, Thomas Mueller a �crit : > 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 variable for session". I need to downcasting because there is no shutdown method in javax.jcr.Repository. And it's all. Sorry, my fault :-)