jsr170

Clustering with Jackrabbit

孤者浪人 提交于 2019-12-22 13:53:22
问题 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.

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

Jackrabbit Running Queries against UUID

假如想象 提交于 2019-12-02 04:17:43
问题 I am using Jackrabbit and I am trying to query for an existing node which has a UUID. My code is shown below. The problem is that UUID for referenceNode is of the form "'90be246a-a17c-445e-a5ad-81b064de0bee'" and it seems that the XPATH engine used in Jackrabbit (Lucene) has problems dealing with hyphens. If I run query2, everything is fine and referenceNode is printed. If I run query1 (with the UUID) inside Eclipse, nothing is returned. HOWEVER, if I run query1 inside Jackrabbit Viewer, the

Jackrabbit Running Queries against UUID

拥有回忆 提交于 2019-12-01 23:42:36
I am using Jackrabbit and I am trying to query for an existing node which has a UUID. My code is shown below. The problem is that UUID for referenceNode is of the form "'90be246a-a17c-445e-a5ad-81b064de0bee'" and it seems that the XPATH engine used in Jackrabbit (Lucene) has problems dealing with hyphens. If I run query2, everything is fine and referenceNode is printed. If I run query1 (with the UUID) inside Eclipse, nothing is returned. HOWEVER, if I run query1 inside Jackrabbit Viewer, the query runs fine. It seems like I have to escape the hyphens in my queryString but I tried adding double

Get File Out of JCR File Node

爷,独闯天下 提交于 2019-11-30 02:36:32
I have the following code to insert "rose.gif" into a roseNode. But how do I retrieve the file from the repository? Node roseNode = session.getRootNode().getNode("wiki:encyclopedia/wiki:entry[1]/"); File file = new File("rose.gif"); MimeTable mt = MimeTable.getDefaultTable(); String mimeType = mt.getContentTypeFor(file.getName()); if (mimeType == null) mimeType = "application/octet-stream"; Node fileNode = roseNode.addNode(file.getName(), "nt:file"); System.out.println( fileNode.getName() ); Node resNode = fileNode.addNode("jcr:content", "nt:resource"); resNode.setProperty("jcr:mimeType",

Get File Out of JCR File Node

落爺英雄遲暮 提交于 2019-11-28 23:38:29
问题 I have the following code to insert "rose.gif" into a roseNode. But how do I retrieve the file from the repository? Node roseNode = session.getRootNode().getNode("wiki:encyclopedia/wiki:entry[1]/"); File file = new File("rose.gif"); MimeTable mt = MimeTable.getDefaultTable(); String mimeType = mt.getContentTypeFor(file.getName()); if (mimeType == null) mimeType = "application/octet-stream"; Node fileNode = roseNode.addNode(file.getName(), "nt:file"); System.out.println( fileNode.getName() );