Return-Path: Delivered-To: apmail-incubator-jackrabbit-dev-archive@www.apache.org Received: (qmail 21982 invoked from network); 2 Nov 2004 09:54:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 2 Nov 2004 09:54:47 -0000 Received: (qmail 58813 invoked by uid 500); 2 Nov 2004 09:54:46 -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 58799 invoked by uid 99); 2 Nov 2004 09:54:46 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of stefan.guggisberg@gmail.com designates 64.233.170.207 as permitted sender) Received: from [64.233.170.207] (HELO rproxy.gmail.com) (64.233.170.207) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 02 Nov 2004 01:54:43 -0800 Received: by rproxy.gmail.com with SMTP id 74so229343rnk for ; Tue, 02 Nov 2004 01:54:41 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=m6rQGn2qQNukfX+dvnlZ9vSqAfYd3IKWffeMaGRWIVT8OQ31F0ncwHeuGq44t5Rwdeob52yM+PdHMYEpXLgF9JmwfXKfFfuMLPXCTQvp6/A++FqjAC7vtGtLraR610eKsgZ4bHL1AMEHG/AmVZNg3MZDalXGzPBlH1HdyaJ+vfg= Received: by 10.38.76.17 with SMTP id y17mr731687rna; Tue, 02 Nov 2004 01:54:41 -0800 (PST) Received: by 10.38.152.64 with HTTP; Tue, 2 Nov 2004 01:54:41 -0800 (PST) Message-ID: <90a8d1c004110201544b4ff96@mail.gmail.com> Date: Tue, 2 Nov 2004 10:54:41 +0100 From: Stefan Guggisberg Reply-To: Stefan Guggisberg To: jackrabbit-dev@incubator.apache.org Subject: Re: Jacking into the rabbit In-Reply-To: <41874EE0.6080406@dreambean.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable References: <41874EE0.6080406@dreambean.com> X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N hi rickard, thanks for your interest (and courage ;).=20 take a look at the org.apache.jackrabbit.core.state.PersistenceManager interface; the persistence manager is responsible for loading and storing the state of a node or property. there are currently two implementations in jackrabbit: both XMLPersistenceManager and ObjectPersistenceManager store the state in=20 a virtual file system (that's another SPI), one using XML, the other a simp= le serialiization format (using DataInput/DataOutput). take a look at ObjectPersistenceManager for an example. Implementing a PersistenceManager that's using a different persistence=20 format/layer should be easy and straight forward. i did a couple quick&dirt= y=20 implementations just for experimenting. the persistence manager (and virtual file system) to be used is=20 specified in the repository.xml and workspace.xml files. hope this helps. cheers=20 stefan On Tue, 02 Nov 2004 10:09:52 +0100, Rickard =D6berg = wrote: > Hey >=20 > I am interested in jacking in our own repository as a backend in JR. If > I understand the arch. docs correctly this should be possible. I > couldn't find any pointers on where to start, so if anyone have a list > of "things you need to implement" it would be most appreciated. >=20 > My current guess is that this involves the package > org.apache.jackrabbit.core.virtual as a template, but I'm not sure. >=20 > Currently I don't need any of the fancy stuff > (locking/versioning/tx/security), just the basic model read/write. >=20 > Anyway, any pointers would be appreciated. >=20 > regards, > Rickard >=20 > ps. Yes, I know I'm an early adopter and that there will be pain, lots > of pain. That's ok. >=20 >