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?
...
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...
The situation:
Lets say we are implementing a blog engine based on JCR with support for localization.
The content structure looks something like this /blogname/content/[node name]
The problem:
What is the best way to name the content nodes (/blogname/content/[nodename]) to satisfy the following requirements:
The node name must be us...
Is there a way that I can configure custom node types for Apache Jackrabbit to be registered when a new repository is instantiated?
I am automating my build using Apache Maven and have some unit tests to run with JUnit and integration tests to run with Jetty and want to be able to easily set-up and tear-down a test repository.
...
The Java JCR API defines a persistence mechanism which can be used to replace many of the traditional roles of a RDBMS. For example, JackRabbit - the JCR reference implementation - supports transactions, SQL queries, object-content mapping, etc.
You could pick one or the other, storing binary data in BLOBs/file system pointers in a RDBM...
I'm importing massive data into a JackRabbit JCR repository. A good UI management tool to visualize the JCR repository would be great to check if the imported data is in a good layout, and also would make my life as developer easier.
...
We are now experiencing a number of InvalidItemStateException in our web application caused by 2 or more users updating the same content. As far as I understood it is in design of JackRabbit to throw javax.jcr.InvalidItemStateException in such situation and that's ok, but I wanted to ask about the common way to handle that. We are fairly...
Hi all,
i'm developing a web-application for managing and sharing images and more general media-types at all.
My technology stack is:
Java 6
Spring 2.5x
JPA 1.0
JCR 1.0 with Jackrabbit 1.6.x
ACID-able DB like Derby oder MySQL with InnoDB
Porting to Spring 3.0, JPA 2.0 and JCR 2.0 is in the queue
During deployment i have to provide ...
I am trying to write a LoginModule that authenticates users with Jackrabbit repository. However, I want it to check the credentials that are stored in repository itself. So the problem is, in my LoginModule I have to connect to the repository again, making it an infinite loop. Is there something I can do about it?
...
Hi, I am using Jackrabbit with JCR, how can I change the order of the nodes?
...
I am a little bit stuck in the moment because I don't know if my problem is solvable at all.
I have one database (MySQL) where a JCR repo is stored.
Secondly do I have two webapps (edit/live) that share this data. Live is designed to read only, so it can (really??) be considered save regarding concurrency.
My problem is that everythin...
Is it possible to store randomly accessed files (both on writing and reading) in Jackrabbit JCR implementation, if documentation says that DataStore interface stores data immutable.
...
Hello.
I am using Jackrabbit and I have the following question:
I have a parent node P and a child node C. Both P and C are versionable. At some point in my code I need to get data from a previous version V of P, so I use getVersionHistory().getVersion(V).getNode("jcr:frozennode")
in order to get the version I need. In this version howev...
Apache Jackrabbit (or the JCR API) helps you separate the data store from the data management system. This would mean that every data store provider would have to implement the JCR API for his own data store. The question is JCR implemented for MySQL? Can we use the JCR API over MySQL? I want to truly abstract out where i store my conten...
In JCR 1 you could do:
final InputStream in = zip.getInputStream(zip.getEntry(zipEntryName));
node.setProperty(JcrConstants.JCR_CONTENT, in);
But that's deprecated in JCR 2 as detailed at http://www.day.com/maven/jsr170/javadocs/jcr-2.0/javax/jcr/Node.html#setProperty%28java.lang.String,%20java.io.InputStream%29
That says I should be...
I'm using Apache Jackrabbit to store versioned data. I'm following the template listed on the Jackrabbit wiki for versioning basics, but there's one thing that isn't working as expected.
After I run the code from the wiki, I try saving another version of the node, then getting its version string:
child = parentNode.getNode("childNode")...
Is there a way to bind the Jackrabbit Standalone Server repository to Tomcat using http url?
In server.xml, instead of the ClientRepositoryFactory(which is for RMI):
<Resource name="jcr/globalRepository"
auth="Container"
type="javax.jcr.Repository"
factory="org.apache.jackrabbit.rmi.client.ClientRepositor...
I am starting a new project that needs to connect to a repository that offers JCR and CMIS APIs.
The project is in Java and both APIs offer every operation we need.
What API would you chose and why? JCR or CMIS?
...
what is a proper way of organizing files in a wcm that is using JCR. Let's say the total file count is 100,000+ files and total file size is about 50-70GB.
Is it better to organize files by fie types ( and create sub directories to further group the files by some category)
What are the advantages. Does it make any difference while using...
Jackrabbit 2.1 has versioned nodes. We want to support the "undo" of a delete of one of these nodes. "Finding it" seems to be the tricky part.
...