jackrabbit

Using file system instead of database to store pdf files in jackrabbit

无人久伴 提交于 2019-12-09 16:35:48
问题 In our project we use jackrabbit with spring and tomcat to manage pdf files. Currently MySql database is being used to store blob files (in terms of jackrabbit it's called BundleDbPersistenceManager). As soon as the number of generated files grow we thought of using file system instead of database to boost performance and to eliminate replication overhead. In the spec jackrabbit team recommend using BundleFsPersistenceManager instead but with comments like this Not meant to be used in

What is the best way to save my POJOs into Jackrabbit JCR?

走远了吗. 提交于 2019-12-09 15:32:20
问题 In Jackrabbit I have experienced two ways to save my POJOs into repository nodes for storage in the Jackrabbit JCR: writing my own layer and using Apache Graffito Writing my own code has proven time consuming and labor intensive (had to write and run a lot of ugly automated tests) though quite flexible. Using Graffito has been a disappointment because it seems to be a "dead" project stuck in 2006 What are some better alternatives? 回答1: Another alternative is to completely skip an OCM

Upgrade Jackrabbit 1.3 to Jackrabbit 2.1.1

↘锁芯ラ 提交于 2019-12-07 21:28:07
问题 In my project I need to change Jackrabbit 1.3 to Jackrabbit 2.1.1. My work is to work for queries. Please suggest me if there are changes in index format and query format. Lucene 2.4 is used in Jackrabbit 2.1.1 while in Jackrabbit 1.3 Lucene 2.2 is used. 回答1: Lets divide your upgrade into the following parts: Upgrade 1.3 to 1.5 (see Class IndexMigration): IndexMigration implements a utility that migrates a Jackrabbit 1.4.x index to version 1.5. Until version 1.4.x, indexes used the character

Code examples that use fine grained locks (JCR Jackrabbit?)

混江龙づ霸主 提交于 2019-12-06 13:53:41
问题 I'm doing an academic research in trying to develop a programming tool that assists in implementing fine-grained locking functions, for concurrent programs that maintain tree-like data structures. For example, the programmer may write some functions that receive a tree root-node and modify the tree (by traversing on some routes and adding/removing nodes), and the tool will help him to find where in the code nodes should be locked and where they can be released - so the functions could be

How to store images to jackrabbit and deliver those images to HTML pages?

若如初见. 提交于 2019-12-06 11:32:12
问题 How to store images to jackrabbit and deliver those images to HTML pages? Ex. If user will upload multiple images from one HTML page then he should be able to see all those images in next html page or any other page when required 回答1: This is the way: public class JackRabbitServiceImpl { Repository repository = new TransientRepository(); public JackRabbitServiceImpl() throws Exception{ Session session = repository.login( new SimpleCredentials("username", "password".toCharArray())); try{

Upgrade Jackrabbit 1.3 to Jackrabbit 2.1.1

廉价感情. 提交于 2019-12-06 08:09:19
In my project I need to change Jackrabbit 1.3 to Jackrabbit 2.1.1. My work is to work for queries. Please suggest me if there are changes in index format and query format. Lucene 2.4 is used in Jackrabbit 2.1.1 while in Jackrabbit 1.3 Lucene 2.2 is used. Lets divide your upgrade into the following parts: Upgrade 1.3 to 1.5 (see Class IndexMigration ): IndexMigration implements a utility that migrates a Jackrabbit 1.4.x index to version 1.5. Until version 1.4.x, indexes used the character '' to separate the name of a property from the value. As of Lucene 2.3 this does not work anymore. See

Clustering with Jackrabbit

人走茶凉 提交于 2019-12-06 04:15:37
I am about to get started with clustering a jackrabbit repository run by hippocms in the community version . I got it up and running but some parts of configuration I don't understand. I understood the concept of clustering jackrabbit this way: You have e.g. two instances with two local repositories which get synched by a rocket-scienced journal via a shared database, but every node is using it's local repository. After reading the following pages I ended up with the following configuration. Links: http://wiki.apache.org/jackrabbit/Clustering http://svn.apache.org/viewvc/jackrabbit/trunk

Is there a tool to directly edit the contents of a Jackrabbit repository?

旧街凉风 提交于 2019-12-06 02:06:34
问题 I have a file system based Jackrabbit repository which I would like to view and edit directly. Is there an existing tool that allows me to view/edit/delete/add nodes directly? 回答1: Jackrabbit itself currently has no built-in general-purpose JCR explorer, but there are some open source options available. This article gives a good overview, and the JCRLinks page on the Jackrabbit wiki has a section about such tools. The best web-based one is probably the JCR Explorer. And for use in Eclipse,

How do you backup an apache Jackrabbit repository without shutting Jackrabbit down?

时光总嘲笑我的痴心妄想 提交于 2019-12-05 04:02:18
When running Apache Jackrabbit JCR as an embedded service in your app, is there a quick way to get a sound and consistent backup of the contents of the Jackrabbit repository without shutting Jackrabbit down? If so how? See BackupAndMigration on the Jackrabbit Wiki for a list of options. I would recommend to use XML export (system view), as it is the simplest solution. Also, because it is part of the JCR standard, so it should work on other JCR implementations as well. Note that this approach has one drawback: it is currently not possible to re-import a full export, ie. from the root node and

Code examples that use fine grained locks (JCR Jackrabbit?)

纵饮孤独 提交于 2019-12-04 20:12:43
I'm doing an academic research in trying to develop a programming tool that assists in implementing fine-grained locking functions, for concurrent programs that maintain tree-like data structures. For example, the programmer may write some functions that receive a tree root-node and modify the tree (by traversing on some routes and adding/removing nodes), and the tool will help him to find where in the code nodes should be locked and where they can be released - so the functions could be executed concurrently on the same tree. I am looking for some real-life code examples in which such fine