Over a million developers have joined DZone.

A Human-Readable Jackrabbit Persistence Manager Prototype for OrientDB

DZone 's Guide to

A Human-Readable Jackrabbit Persistence Manager Prototype for OrientDB

· Database Zone ·
Free Resource

After working with Apache Jackrabbit for a while, I still wonder about the database persistence managers that Jackrabbit provides. Storing the node serialized in a blob always seemed a bit perverse when using the concepts of a database.

Some time ago, I thought about whether I could do that in a more "database" way. The idea was to use OrientDB since it stores documents (nodes) as well as a graph (the jcr tree). To see if I could do it, I wrote a functional, test-passing prototype that stores the node in a human-readable OrientDB document and persists the child relations as edges in the graph.

This has some limitations, as jackrabbit will still access only one node at a time.  Being able to traverse the graph at the storage level is simply not intended by the whole API. But it works, it's readable and it can be modified at the database level easily.

You can grab the code at https://github.com/eiswind/jackrabbit-orient


Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}