Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 57525 invoked from network); 17 Jul 2009 10:11:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 17 Jul 2009 10:11:20 -0000 Received: (qmail 39996 invoked by uid 500); 17 Jul 2009 10:12:25 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 39935 invoked by uid 500); 17 Jul 2009 10:12:25 -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 39924 invoked by uid 99); 17 Jul 2009 10:12:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Jul 2009 10:12:25 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of aklimets@day.com designates 207.126.148.183 as permitted sender) Received: from [207.126.148.183] (HELO eu3sys201aog003.obsmtp.com) (207.126.148.183) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 17 Jul 2009 10:12:16 +0000 Received: from source ([74.125.78.25]) by eu3sys201aob003.postini.com ([207.126.154.11]) with SMTP ID DSNKSmBOaWOxQH11QaFU8+6Jis4F6ymfE+ca@postini.com; Fri, 17 Jul 2009 10:11:55 UTC Received: by ey-out-2122.google.com with SMTP id 4so149372eyf.9 for ; Fri, 17 Jul 2009 03:11:53 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.29.66 with SMTP id h44mr263905wea.136.1247825513382; Fri, 17 Jul 2009 03:11:53 -0700 (PDT) In-Reply-To: <200907170810.36324.herve.agnoux@diaam-informatique.com> References: <200907081445.26771.herve.agnoux@diaam-informatique.com> <200907092322.33106.herve.agnoux@diaam-informatique.com> <200907170810.36324.herve.agnoux@diaam-informatique.com> Date: Fri, 17 Jul 2009 12:11:53 +0200 Message-ID: Subject: Re: Repository for nomades ? From: Alexander Klimetschek To: users@jackrabbit.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org 2009/7/17 Herv=E9 Agnoux : > I don't understand very well the idea of "merge". I work with the idea of= the > decorator pattern. > > A myself-repository wraps the real repository, and distrib the call first= to > the real, second to the distant (a mirror, or a synchro, or any other thi= ng). But in this case you need the remote connection available when the client writes data - in which case you always require a network connection and could just access the remote repository directly. Also it wouldn't be faster (one could say it's a slow connection, the local save is then faster), because if you wrap the JCR API used by the client, the calls would need to block until all parts (local and remote) are finished, to ensure proper behaviour. There is no way around using a merge in this situation ;-) The good thing about the merge is, that the hard part of merging is mostly implemented in Jackrabbit already and that the spec is very clear about it. > And I don't know how to do the tests. Is there some facilities to test a > repository in jackrabbit or jcr ? Assuming you want to test the JCR API, of course there are tests, as Jackrabbit is the reference implementation for the JCR spec, hence contains the whole test suite. For Jackrabbit 1.5, based on JCR 1.0: http://svn.apache.org/repos/asf/jackrabbit/branches/1.5/jackrabbit-jcr-test= s/ For the upcoming Jackrabbit 2.0, with the JCR 2.0 API as basis: http://svn.apache.org/repos/asf/jackrabbit/trunk/jackrabbit-jcr-tests/ Regards, Alex --=20 Alexander Klimetschek alexander.klimetschek@day.com