Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 38382 invoked from network); 16 Mar 2010 14:43:44 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 16 Mar 2010 14:43:44 -0000 Received: (qmail 27186 invoked by uid 500); 16 Mar 2010 14:43:43 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 27163 invoked by uid 500); 16 Mar 2010 14:43:43 -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 27154 invoked by uid 99); 16 Mar 2010 14:43:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Mar 2010 14:43:43 +0000 X-ASF-Spam-Status: No, hits=-1.1 required=10.0 tests=AWL,FREEMAIL_FROM,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of justinedelson@gmail.com designates 74.125.83.170 as permitted sender) Received: from [74.125.83.170] (HELO mail-pv0-f170.google.com) (74.125.83.170) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Mar 2010 14:43:38 +0000 Received: by pvg6 with SMTP id 6so1565219pvg.1 for ; Tue, 16 Mar 2010 07:43:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=y/ahXHuezS/s+rjFIifOWFizcrEiZPICfZMljPQNg/E=; b=Xnf/Zdl03ieTMuu8Zg3lF+9jEzhgPvbQaVHc8N6ioeRDFDKQ5h+7ZSrUlBLZ9ksO+L LJyr5gpo6WGZV1kbc+lGin/mePBwr7IUp8G51KQTYci+VNKjGsI5adtfmrgGbpfK1P6W OxNuCdWuQBopwjkIOiPlrLP45tbHn662DPc5o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; b=IGLxzjcBE+Gl9Mg9BrRvEDwL+7ABBYBuD/IbAcKtSXmPG7OwHVFo/mqN+s5srhKLS5 hYj/wtZUqcP7gd2lWHexzInYE14ywgSEZ/Z1MdJf4CBcXwXVJl7EAHla6fVd+lJ6bEJC 3Li+lb1uWk9XsCfbd84u2DYxf7lN+YPZ3LNhc= Received: by 10.114.32.10 with SMTP id f10mr57856waf.150.1268750597804; Tue, 16 Mar 2010 07:43:17 -0700 (PDT) Received: from Justin-Edelsons-iMac.local (ool-44c6554e.dyn.optonline.net [68.198.85.78]) by mx.google.com with ESMTPS id 21sm6961161pzk.4.2010.03.16.07.43.16 (version=SSLv3 cipher=RC4-MD5); Tue, 16 Mar 2010 07:43:17 -0700 (PDT) Message-ID: <4B9F9902.7060104@gmail.com> Date: Tue, 16 Mar 2010 10:43:14 -0400 From: Justin Edelson Reply-To: justin@justinedelson.com User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3 MIME-Version: 1.0 To: users@jackrabbit.apache.org Subject: Re: Accessing workspace other than default ? References: <7ec3c64c1003160506h4f2ae591oe1b2107b0ef21259@mail.gmail.com> <8fb1e0d21003160535g17ceb411n441227449dcb0687@mail.gmail.com> <1A7308FF-68C4-4B30-839E-D75A52AA724B@sptci.com> <8fb1e0d21003160600v1b9619a3l3ad28c9cba78156@mail.gmail.com> <8fb1e0d21003160652j6258cfcckb7cb9cba869d6ce5@mail.gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit I created JCR-2571 for this. I would still recommend referring to the spec first. I sent you some additional questions about this problem earlier. As I said in that email, I am using this API and it is working fine for me. Justin On 3/16/10 10:32 AM, Jacques Granduel wrote: > Hi all, > > tried on another configuration with no success! > > I tried to remember why I ended up using the > org.apache.jackrabbit.core.WorkspaceImpl(W).createWorkspace("W2") method > so went back to google "JCR create workspace" > first link : > The *JCR* API > does not contain features for *creating* or managing *workspaces*, so you > need to use Jackrabbit-specific functionality for *creating* new *workspaces > *. *...* > jackrabbit.apache.org/frequently-asked-questions.html > > following the link... > > How do I create new workspaces in Jackrabbit? > > The JCR API does not contain features for creating or managing workspaces, > so you need to use Jackrabbit-specific functionality for creating new > workspaces. You can create a new workspace either manually or > programmatically. > > The manual way is to create a new workspace directory within the repository > home directory and to place a new workspace.xml configuration file in that > folder. You can use the configuration file of an existing workspace as an > example, just remember to change the name of the workspace in the Workspace > name="..." tag. See the Jackrabbit > Configurationpage > for configuration details. Note also that you need to restart the > repository instance to access the new workspace. > > The programmatic way is to acquire a Workspace instance using the normal JCR > API and to cast the instance to the JackrabbitWorkspace interface. You can > then use the createWorkspace(String) method to create new workspaces. > I was misguided by the first paragraph... Who could update the FAQ? > thx > jgr > > > > > 2010/3/16 Joseph Ottinger > >> The only issue I have with the primer so far: no code! (That's not to say >> Jochen didn't do a really, really good job, because it's an excellent >> primer >> on concepts.) >> >> I was thinking something like a "howto" with sample code. The first hops >> are >> okay, but they're so light that they're not workable in practice. No >> locking, and they're JSR170 rather than the JCR 2.0 spec... >> >> On Tue, Mar 16, 2010 at 9:00 AM, Joseph Ottinger >> wrote: >> >>> Thanks, Rakesh. Reading further now. >>> >>> >>> On Tue, Mar 16, 2010 at 8:42 AM, Rakesh Vidyadharan >> wrote: >>> >>>> >>>> On 16 Mar 2010, at 07:35, Joseph Ottinger wrote: >>>> >>>>> Is there a wiki that's collecting the "right way" to do all this >> stuff? >>>> >>>> The "right way" is usually to try and use only the JCR API (similar to >>>> using JDBC for instance). Google for JCR tutorials and you will get >> some >>>> good links. >>>> >>>> http://jtoee.com/jsr-170/the_jcr_primer/ >>>> >>>> Rakesh >>> >>> >>> >>> >>> -- >>> Joseph B. Ottinger >>> http://enigmastation.com >>> >> >> >> >> -- >> Joseph B. Ottinger >> http://enigmastation.com >> >