Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 53848 invoked from network); 21 Sep 2010 11:29:46 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 21 Sep 2010 11:29:46 -0000 Received: (qmail 79193 invoked by uid 500); 21 Sep 2010 11:29:46 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 79006 invoked by uid 500); 21 Sep 2010 11:29:44 -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 78997 invoked by uid 99); 21 Sep 2010 11:29:43 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Sep 2010 11:29:43 +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 aklimets@day.com designates 207.126.148.91 as permitted sender) Received: from [207.126.148.91] (HELO eu3sys201amo010.postini.com) (207.126.148.91) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 21 Sep 2010 11:29:20 +0000 Received: from source ([209.85.212.48]) by eu3sys201aob104.postini.com ([207.126.154.11]) with SMTP ID DSNKTJiW+zK/hcZwW62KadGl2zVXdce1F8X9@postini.com; Tue, 21 Sep 2010 11:28:59 UTC Received: by vws4 with SMTP id 4so265378vws.7 for ; Tue, 21 Sep 2010 04:28:59 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.126.130 with SMTP id c2mr5468782vcs.224.1285068538717; Tue, 21 Sep 2010 04:28:58 -0700 (PDT) Received: by 10.220.182.75 with HTTP; Tue, 21 Sep 2010 04:28:58 -0700 (PDT) In-Reply-To: <1284445456128-2538488.post@n4.nabble.com> References: <1284445456128-2538488.post@n4.nabble.com> Date: Tue, 21 Sep 2010 13:28:58 +0200 Message-ID: Subject: Re: Is there a way to access two or more repositories through one webapp? From: Alexander Klimetschek To: users@jackrabbit.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On Tue, Sep 14, 2010 at 08:24, ampofila wrote: > > I have two repositories each of which can be accessed through JNDI. I am > using JBoss AS 5.1.0.GA and currently I can browse the repositories by > deploying two different jackrabbit web applications into JBoss. (i.e. in > each web.xml the RepositoryAccessServlet is initialized with the repository > jndi name) > > Is it possible to declare two repositories in the same web app (thus to use > one web app instead of two)? Jackrabbit version is 2.0.0. If you use the standard Jackrabbit web app with built-in WebDAV servers, RMI exposure and some JSP-based UI, it won't work, since it only handles one repository. For example, the webdav paths include the workspace + the repo path, but nothing to distinguish multiple repositories. For a custom web app you can easily use as many repositories as possible, as long as the app knows how to handle them. The underlying repository implementation is web application neutral. Regards, Alex -- Alexander Klimetschek alexander.klimetschek@day.com