From users-return-8295-apmail-jackrabbit-users-archive=jackrabbit.apache.org@jackrabbit.apache.org Thu Jul 17 11:08:10 2008 Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 65371 invoked from network); 17 Jul 2008 11:08:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Jul 2008 11:08:10 -0000 Received: (qmail 75384 invoked by uid 500); 17 Jul 2008 11:08:09 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 75360 invoked by uid 500); 17 Jul 2008 11:08:09 -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 75349 invoked by uid 99); 17 Jul 2008 11:08:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Jul 2008 04:08:08 -0700 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 62.192.10.254 as permitted sender) Received: from [62.192.10.254] (HELO goobak01.day.com) (62.192.10.254) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Jul 2008 11:07:14 +0000 Received: by goobak01.day.com (Postfix, from userid 1212) id 1D8C250871; Thu, 17 Jul 2008 13:07:00 +0200 (CEST) Received: from el-out-1112.google.com (el-out-1112.google.com [209.85.162.180]) by goobak01.day.com (Postfix) with ESMTP id B0BB95081D for ; Thu, 17 Jul 2008 13:06:59 +0200 (CEST) Received: by el-out-1112.google.com with SMTP id n30so1140967elf.4 for ; Thu, 17 Jul 2008 04:07:20 -0700 (PDT) Received: by 10.142.255.14 with SMTP id c14mr538757wfi.296.1216292839412; Thu, 17 Jul 2008 04:07:19 -0700 (PDT) Received: by 10.142.188.14 with HTTP; Thu, 17 Jul 2008 04:07:19 -0700 (PDT) Message-ID: Date: Thu, 17 Jul 2008 13:07:19 +0200 From: "Alexander Klimetschek" To: users@jackrabbit.apache.org Subject: Re: webdav integration In-Reply-To: <82670ba40807161233yaac68fbifdffac73ad0d5a91@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <82670ba40807161233yaac68fbifdffac73ad0d5a91@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi, you can extend the SimpleWebdavServlet (inside jackrabbit-jcr-server and you also need the jackrabbit-webdav lib). The only thing you will have to do is to overwrite the getRepository() method and provide your own (Transient)Repository. Then you need to have a servlet container started from within your application or junit test (I think Jetty is the simplest for this task). Have a look at the javadocs: http://jackrabbit.apache.org/api/1.4/org/apache/jackrabbit/webdav/simple/SimpleWebdavServlet.html See also http://wiki.apache.org/jackrabbit/WebDAV for some infos and links to the javadocs. Otherwise you can install a servlet container and deploy the entire jackrabbit-webapp.war: http://www.apache.org/dyn/closer.cgi/jackrabbit/binaries/jackrabbit-webapp-1.4.war Regards, Alex On Wed, Jul 16, 2008 at 9:33 PM, Michael Harris wrote: > hello > > new to jackrabbit. I can setup a a TransientRepository and add nodes to it > (basically by following first hops). what i wanted to do next was access > that repo via the webdav api. > > the question is, how do i do this in a junit environment without a > webserver? Is it even possible? So setup the Transient Repo in the test > setup, then have some sort > of simple client that accesses that repo via webdav. > > I couldn't find any tutorials/help articles on this sort of thing. > > thanx > -- > --------------------- > Michael Harris > -- Alexander Klimetschek alexander.klimetschek@day.com