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 4D81B1063D for ; Fri, 30 Aug 2013 07:21:29 +0000 (UTC) Received: (qmail 18247 invoked by uid 500); 30 Aug 2013 07:21:29 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 17614 invoked by uid 500); 30 Aug 2013 07:21:21 -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 17605 invoked by uid 99); 30 Aug 2013 07:21:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Aug 2013 07:21:19 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=FRT_ADOBE2,MISSING_MIMEOLE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [77.76.217.5] (HELO mail01.fusic-online.de) (77.76.217.5) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Aug 2013 07:21:15 +0000 Received: from localhost (localhost [127.0.0.1]) by mail01.fusic-online.de (Postfix) with ESMTP id 0A109A1FD0 for ; Fri, 30 Aug 2013 09:20:53 +0200 (CEST) Received: from mail01.fusic-online.de ([127.0.0.1]) by localhost (mail01.fusic-online.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qEYmHzMdoHmH for ; Fri, 30 Aug 2013 09:20:51 +0200 (CEST) Received: from pomelo.byteconsult.de (p5099566c.dip0.t-ipconnect.de [80.153.86.108]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: byteconsult-relay@fusic-online.de) by mail01.fusic-online.de (Postfix) with ESMTPSA id 3B319A1FAE for ; Fri, 30 Aug 2013 09:20:51 +0200 (CEST) X-Spam-Level: X-Footer: Ynl0ZWNvbnN1bHQuZGU= Received: from [192.168.123.145] ([192.168.123.145]) by pomelo.byteconsult.de (Kerio Connect 8.0.2) for users@jackrabbit.apache.org; Fri, 30 Aug 2013 09:20:47 +0200 Date: Fri, 30 Aug 2013 09:20:44 +0200 Subject: AW: Spring jcr version to use with Jack Rabbit 2.6.3 Importance: Normal X-Priority: 3 X-MSMail-Priority: Normal Thread-Index: Ac6lIuUUXPGyyJfbT52VtcQeV39YogALYW9g Message-ID: <528cf44f-e14f-4378-83b1-50bd3f969079@byteconsult.de> References: In-Reply-To: X-Mailer: Kerio Outlook Connector (Offline Edition) (8.0.2.1117 T0) From: Thomas Auinger Sender: Thomas Auinger To: users@jackrabbit.apache.org MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, hits=0.0 required=6.5 tests=AWL: -0.438,BAYES_00: -1.665,FRT_ADOBE2: 0.877, MISSING_MIMEOLE: 1.899,CUSTOM_RULE_FROM: ALLOW,TOTAL_SCORE: 0.673,autolearn=no Hi Alex, I understand your reasoning for not using the Spring module, however, a typ= ical Spring application is built around a single "Dispatcher" servlet, whic= h makes session management in various servlets not a standard "Spring way". Of course it is still possible to use servlet-filters or sprint interceptor= s, which can be configured like e.g. http://stackoverflow.com/questions/9908124/spring-mvc-3-interceptor-on-all-= excluding-some-defined-paths Viele Gr=FC=DFe Thomas Auinger Beratung und Leitung Entwicklung ByteConsult GmbH=A0 |=A0 Tel.: +49-(0)931-20510-20=A0 |=A0 AG W=FCrzburg, H= RB 7262 Sch=FCrerstra=DFe 5=A0=A0 |=A0 Fax:=A0 +49-(0)931-20510-19=A0 |=A0 GF: Jens= Helmerich 97080 W=FCrzburg=A0=A0=A0 |=A0 http://www.byteconsult.de=A0 |=A0=A0=A0=A0= =A0 Manuel Hermann -----Urspr=FCngliche Nachricht----- Von: Alexander Klimetschek [mailto:aklimets@adobe.com]=20 Gesendet: Freitag, 30. August 2013 03:47 An: dev@jackrabbit.apache.org Cc: users@jackrabbit.apache.org Betreff: Re: Spring jcr version to use with Jack Rabbit 2.6.3 The spring jcr module is not developed by the Apache Jackrabbit. AFAIU it i= s inactive for a number of years already. But you don't need it to use JCR withing Spring applications. What it does = is IMHO a bad approach with JCR anyway - it sees JCR as just another DAO/OC= R framework and uses template callbacks etc. to make it completely transpar= ent to the user how the JCR session underneath is managed. This is a bad th= ing, it is important to control the session (login, lifecycle usually per r= equest, and exact save() or refresh() points) yourself. A usueful approach is: - to have maybe a servlet filter etc. auto-create the session at the start = of the request and use whatever authentication you have over HTTP coming in= to login the right user for the session and - provide that to your servlets in e.g. a request attribute. - session.save() would be up to servlets that actually change something (e.= g. POST or PUT requests) - background services outside a request would create their own session with= e.g. a service user You don't need the spring jcr module for this. Also, you might want to look= at Apache Sling, which follows the above pattern. Cheers, Alex On 29.08.2013, at 02:35, sumit tiwari wrote: > Hi All, >=20 > I am planning to use jack rabbit with spring. I am seeing that spring jcr= version 0.8 and 0.9 looks for old jsr170 jar and fails out. >=20 >=20 > [ERROR] Failed to execute goal on project xyz: Could not resolve dependen= cies for project com.test.xyq:war:2.4.2: The following artifacts could not = be resolved: jsr170:jsr170:jar:1.0, jeceira:jeceira:jar:0.1.3, aparzev:doka= :jar:0.1, aparzev:commons:jar:0.2, jug:jug-asl:jar:2.0.0: Failure to find j= sr170:jsr170:jar:1.0 in http:///nexus/content/groups/cliqrthirdparty was ca= ched in the local repository, resolution will not be reattempted until the = update interval of has elapsed http:///nexus/content/groups/cliqrthirdpart= y or updates are forced -> [Help 1] >=20 > I did the exclusion=20 >=20 > > org.springmodules > spring-modules-jcr > 0.8 > true > > > jackrabbit-core > org.apache.jackrabbit > > > jackrabbit-jca > org.apache.jackrabbit > > > =09 >=20 > I am using it in application-context.xml >=20 > class=3D"org.springmodules.jcr.jackrabbit.RepositoryFactoryBean"> > > > > > >=20 > Is there any recent spring document which I can refer. I am not keen on u= sing spring jcr but a good approach in which I can integrate the latest ver= sion of jack rabbit with spring. > =20 >=20 > --=20 > Thanks, > Sumit=20 >=20 =