How to learn using content repository and Apache JackRabbit?

假装没事ソ 提交于 2020-01-22 14:56:06

问题


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.


回答1:


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.




回答2:


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.



来源:https://stackoverflow.com/questions/17783838/how-to-learn-using-content-repository-and-apache-jackrabbit

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!