jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Guggisberg <stefan.guggisb...@gmail.com>
Subject Re: Jacking into the rabbit
Date Tue, 02 Nov 2004 09:54:41 GMT
hi rickard,
thanks for your interest (and courage ;). 

take a look at the org.apache.jackrabbit.core.state.PersistenceManager
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 
a virtual file system (that's another SPI), one using XML, the other a simple
serialiization format (using DataInput/DataOutput). take a look at
ObjectPersistenceManager  for an example.

Implementing a PersistenceManager that's using a different persistence 
format/layer should be easy and straight forward. i did a couple quick&dirty 
implementations just for experimenting.

the persistence manager (and virtual file system) to be used is 
specified in the repository.xml and workspace.xml files.

hope this helps.


On Tue, 02 Nov 2004 10:09:52 +0100, Rickard Öberg <rickard@dreambean.com> wrote:
> Hey
> 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.
> My current guess is that this involves the package
> org.apache.jackrabbit.core.virtual as a template, but I'm not sure.
> Currently I don't need any of the fancy stuff
> (locking/versioning/tx/security), just the basic model read/write.
> Anyway, any pointers would be appreciated.
> regards,
>   Rickard
> ps. Yes, I know I'm an early adopter and that there will be pain, lots
> of pain. That's ok.

View raw message