Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 76636 invoked from network); 9 Apr 2010 07:26:56 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 9 Apr 2010 07:26:56 -0000 Received: (qmail 97800 invoked by uid 500); 9 Apr 2010 07:26:56 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 97722 invoked by uid 500); 9 Apr 2010 07:26:53 -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 97712 invoked by uid 99); 9 Apr 2010 07:26:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Apr 2010 07:26:52 +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 anchela@day.com designates 207.126.148.89 as permitted sender) Received: from [207.126.148.89] (HELO eu3sys201aog103.obsmtp.com) (207.126.148.89) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 09 Apr 2010 07:26:42 +0000 Received: from source ([209.85.219.209]) by eu3sys201aob103.postini.com ([207.126.154.11]) with SMTP ID DSNKS77WnWDLJi3pkYjwsffYmhDhOGxjtXZv@postini.com; Fri, 09 Apr 2010 07:26:22 UTC Received: by ewy1 with SMTP id 1so1233568ewy.15 for ; Fri, 09 Apr 2010 00:26:21 -0700 (PDT) Received: by 10.213.40.80 with SMTP id j16mr193436ebe.18.1270797981563; Fri, 09 Apr 2010 00:26:21 -0700 (PDT) Received: from bslm-074.corp.day.com (bsl-rtr.day.com [62.192.10.254]) by mx.google.com with ESMTPS id 15sm522384ewy.12.2010.04.09.00.26.19 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 09 Apr 2010 00:26:19 -0700 (PDT) Message-ID: <4BBED699.30609@day.com> Date: Fri, 09 Apr 2010 09:26:17 +0200 From: Angela Schreiber User-Agent: Thunderbird 2.0.0.21 (Macintosh/20090302) MIME-Version: 1.0 To: users@jackrabbit.apache.org Subject: Re: Jackrabbit 1.6 and DavEx ? References: <4BBDDD99.1080601@fylab.com> In-Reply-To: <4BBDDD99.1080601@fylab.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org hi john > So my question is : is it possible to have a DavEx remote connection to > a repository with the API 1.6 ? > I tried to figure out by myself by browsing the docs and the list, but I > couldn't find this information. I just saw the package spi2davex that > gives me some hope. when there is such a package it should be possible. there are quite some issues fixed since then (-> see jira) but apart from that it should work. > If it's possible to do it, I would be glad to have a snippet of code to > establish the connection. I've found it for the version 2.0 but I guess > the Utils class used is proper to 2.0. you can easily create the connection by manually creating the jcr2spi Repository instance. something like: String url = ; final RepositoryService service = createService(url) // see below; Repository repository = RepositoryImpl.create(new AbstractRepositoryConfig() { public RepositoryService getRepositoryService() { return service; } }); private RepositoryService createService(String uri) throws RepositoryException { BatchReadConfig brc = new BatchReadConfig() { public int getDepth(Path path, PathResolver resolver) throws NamespaceException { return 4; } }; return new RepositoryServiceImpl(uri, brc); } that code is copied from the test setup in spi2davex. hope that helps angela > Thank you ! > John >