jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Klimetschek" <aklim...@day.com>
Subject Re: how to Connect to the Repository
Date Mon, 22 Sep 2008 15:32:21 GMT
On Mon, Sep 22, 2008 at 5:04 PM, xing007008 <xing007008@163.com> wrote:
> I don't want to use Jackrabbit source code. I want to write code by myself.

Do you want to write your own JCR implementation? This is not a
trivial task ;-) If you want to bind an existing backend storage under
the JCR API, you might want to look at Jackrabbit's "Service Provider
Interface" (SPI) [1], which reduces the jcr api to a simpler api with
less classes and methods to implement. Unfortunately there is not much
documentation on this apart from the code (jackrabbit-spi [2],
jackrabbit-spi-commons [3] and spi2jcr [4]).

[1] http://jackrabbit.apache.org/jackrabbit-spi.html
[2] http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-spi/
[3] http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-spi-commons/
[4] http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-spi2jcr/

> Do you have the simple demo?

You mean how to register an object under JNDI? Here is Jackrabbit's
helper class that does this [5], also look at the entire package [6].

[5] https://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/jndi/RegistryHelper.java?view=markup
[6] https://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/jndi/

Regards,
Alex

-- 
Alexander Klimetschek
alexander.klimetschek@day.com

Mime
View raw message