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.

LuckyLuke
  • 47,771
  • 85
  • 270
  • 434

2 Answers2

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.

greenkode
  • 4,001
  • 1
  • 26
  • 29
  • 2
    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? – LuckyLuke Jul 22 '13 at 21:27
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.

ehsavoie
  • 3,126
  • 1
  • 16
  • 14