Return-Path: Delivered-To: apmail-incubator-jackrabbit-dev-archive@www.apache.org Received: (qmail 57556 invoked from network); 10 Apr 2005 14:55:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 Apr 2005 14:55:44 -0000 Received: (qmail 99349 invoked by uid 500); 10 Apr 2005 14:55:43 -0000 Mailing-List: contact jackrabbit-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jackrabbit-dev@incubator.apache.org Delivered-To: mailing list jackrabbit-dev@incubator.apache.org Received: (qmail 99335 invoked by uid 99); 10 Apr 2005 14:55:43 -0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=PRIORITY_NO_NAME,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of gcaj-jackrabbit-dev@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.28) with ESMTP; Sun, 10 Apr 2005 07:55:41 -0700 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1DKdnk-00056u-HS for jackrabbit-dev@incubator.apache.org; Sun, 10 Apr 2005 16:52:40 +0200 Received: from d16-139.rb.gh.centurytel.net ([69.29.207.139]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 10 Apr 2005 16:52:40 +0200 Received: from ryan by d16-139.rb.gh.centurytel.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 10 Apr 2005 16:52:40 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: jackrabbit-dev@incubator.apache.org From: "Ryan Dewell" Subject: Re: Workspaces Date: Sun, 10 Apr 2005 07:55:57 -0700 Lines: 46 Message-ID: References: X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: d16-139.rb.gh.centurytel.net X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Sender: news X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On a related note, and a possible workaround for what I'm looking at, is there a way to anchor a Query at a particular Node other than the root of the repository -- so that the Query is performed relative to that Node instead of the root? I'm used to xpath's notion of an initial context node that I can control, and I guess I'm looking for something similar here. Ideas? Best regards, Ryan "Ryan Dewell" wrote in message news:d3a9c4$k3r$1@sea.gmane.org... > Hi, I'm just diving into JR and so far so good. I'm trying to understand > some concepts, though, related to workspaces and the repository as a > whole. > > Let's say I have a repository that looks like a file system with user > directories: > > /jcr:root/x:users/x:jane/ > /jcr:root/x:users/x:bob/ > /jcr:root/x:system/ > > I originally expected to be able to obtain a Session that is rooted at > x:jane or x:bob, all from one global repository workspace. But, what I'm > seeing right now (through sleepy eyes) is that I'd have to give x:jane and > x:bob different workspaces in repository.xml. Is this correct? > > If workspaces are the preferred (or only) way to get a Session rooted at a > particular Node, then I guess I'm looking for a way to dynamically create > workspaces at runtime without modifying repository.xml. I see a > createWorkspace in RepositoryImpl, but it is package private. > > Any ideas on this are appreciated. I'm still wrapping my head around some > of this as you can tell. :) > > Ryan > > > >