How to learn using content repository and Apache JackRabbit?
Asked Answered
J

2

8

Where do I go after doing the "First hops" in the Apache JackRabbit website? I don't understand how to create a repository that is not in memory and how to configure it and so on.

Johnathon answered 22/7, 2013 at 9:20 Comment(0)
C
2

You could look also at Silverpeas code. It's using Jackrabbit with some simple code to create nodes, browse them etc. For example take a look into https://github.com/Silverpeas/Silverpeas-Core/blob/master/lib-core/src/main/java/org/silverpeas/attachment/repository/DocumentRepository.java The tests are using in memory repository but the final stuff is using a 'real' repository.

Also you might take a look at JBoss Modeshape which is another implementation of the JCR API. Some of the docs are cross implementation. There is also Crash which enables you to add a shell to your running repository.

Cocoa answered 24/7, 2013 at 7:30 Comment(0)
S
6

Welcome to my world. The Jackrabbit documentation is a bit all over the place. you will have to do some serious googling.

However the Wiki is a good place to start. Start with the Examples page. Just try to add a new record into the CMS. Then implement versioning. Don't worry about embedding it yet into an application. I would use the standalone version at this stage.

If you're up to it, you can also download the Apache Sling source codes. Look through the JCR packages. You'll get a few tips on how to use it in a Web application.

Sight answered 22/7, 2013 at 20:25 Comment(1)
Okey, so it isn't only me who struggles with getting a grip on it. I am not going to use Apache Sling though, but is it still a good place to learn? What did you do after going through the example page and wiki?Johnathon
C
2

You could look also at Silverpeas code. It's using Jackrabbit with some simple code to create nodes, browse them etc. For example take a look into https://github.com/Silverpeas/Silverpeas-Core/blob/master/lib-core/src/main/java/org/silverpeas/attachment/repository/DocumentRepository.java The tests are using in memory repository but the final stuff is using a 'real' repository.

Also you might take a look at JBoss Modeshape which is another implementation of the JCR API. Some of the docs are cross implementation. There is also Crash which enables you to add a shell to your running repository.

Cocoa answered 24/7, 2013 at 7:30 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.