jackrabbit repository and Database distributed transaction

2006-08-24 Thread Shanmugam Gopal
All, I am trying to insert a record into DB and insert a node in Jackrabbit repository in a single transaction. I am using Spring module's JCR support for accessing the repository and HibernateDAOSupport for accessing the Database. If there is any exception while accessing the repository, bo

Re: Jackrabbit UI Tool

2006-08-24 Thread Harry Moore
I just got it going myself about 2 hours ago. On Tomcat you uncomment the RMI configuration setting in WEB-INF\web.xml and set them up. Something like this: rmi-port 9900 The RMI port for registering the repository in the RMI Registry. If equals 0, the default port is u

Re: Jackrabbit UI Tool

2006-08-24 Thread JavaJ
I was trying the JLibrary JCR Browser and it requires RMI connection info. How do you enable RMI access in Jackrabbit? Marcel Reutegger wrote: > > JavaJ wrote: >> Is there some kind of tool available that will allow you to inspect and >> traverse your repository through a UI, like inspect node

Re: SQL equivalent of Node.hasProperty?

2006-08-24 Thread Doug Douglass
Well, replying to myself again with some more information...hoope I'm not getting annoying. First, I got tripped up writing some tests where I was not saving the session before testing with queries and was getting some false positives. This behavior is explained in Sec. 6.6.12 of the JCR spec. G

Re: SQL equivalent of Node.hasProperty?

2006-08-24 Thread Doug Douglass
Replying for the benefit of others... Appearantly the export/import of a document view breaks the sql IS NULL/IS NOT NULL test for optional properties that never had a value assigned, at least for STRING properties, I haven't tested other types. The Value in a Row returned in a QueryResult is nul

copying a transient node

2006-08-24 Thread Ramesh Devaraj
Hi How to copy the transient node? For example: I have Node 'A' in the persistence than I create a node 'B' now i want to copy node 'B' to under 'A' When I am trying implementing the above scenario I am getting an exception javax.jcr.PathNotFoundException: /user_user_1 at or

How to check in a file node ??

2006-08-24 Thread Shanmugam Gopal
Hai, I have created a file node as below. File file = new File("C:\\gif\\Hello.html"); MimeTable mt = MimeTable.getDefaultTable(); String mimeType = mt.getContentTypeFor(file.getName()); if (mimeType == null) { mimeType = "application/octet-stream";

creating node

2006-08-24 Thread Ramesh Devaraj
Hi I my use case I want minimize time between locking and unlocking. In Detail: 1. I don't to lock the parent node than create a child node than save and unlock it (here other threads working parallel has wait for long time until it is unlocked) 2. If I create a child node than I am not

Re: Deployment model 3, accessing repository via RMI.

2006-08-24 Thread Maxim Suponya
As I thought, it was a silly question :) Thank you, this is what i was looking for! On 8/24/06, Stefan Guggisberg <[EMAIL PROTECTED]> wrote: jcr-rmi is a transparent RMI layer for the JCR api. your client code uses just the plain JCR api. see the examples page and scroll to the bottom, there

AW: creating node

2006-08-24 Thread Ramesh Devaraj
Hi I my use case I want minimize time between locking and unlocking. In Detail: 1. I don't to lock the parent node than create a child node than save and unlock it (here other threads working parallel has wait for long time until it is unlocked) 2. If I create a child node than I am not

Re: creating node

2006-08-24 Thread David Nuescheler
Every node in a workspace has a path. If the path is irrelevant to you application you can for example create all the "unfiled" nodes in a single location say ("/bag"). In my personal experience I have found that users who would like to create nodes without meaningful paths, usually base their c

AW: creating node

2006-08-24 Thread Ramesh Devaraj
Hi I want to create a node which is not added/attached to any node in the workspace. Thank u very much ramesh -Ursprüngliche Nachricht- Von: Nicolas [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 24. August 2006 14:26 An: users@jackrabbit.apache.org Betreff: Re: creating node Hi, H

Re: FW: Custom Node Types XML

2006-08-24 Thread Stefan Guggisberg
On 8/24/06, Shanmugam Gopal <[EMAIL PROTECTED]> wrote: Hi, I am trying to create a custom node by extending nt:resource so that I can add some custom properties to that node. Following is the Custom_nodetypes.xml configuration. did you edit custom_nodetypes.xml manually? custom_nodetypes.xml

Re: Jackrabbit UI Tool

2006-08-24 Thread Shane O'Sullivan
Unfortunately, I have only tested this with the basic JackRabbit release, with Lucene and Derby being used. It's not an active project of mine, so I don't have time to test it in multiple configurations. However, everything is done with the JackRabbit API, so it should be working. Are you point

AW: Jackrabbit UI Tool

2006-08-24 Thread Ramesh Devaraj
Hi I am using MYSQL for persistence. When I am trying open the repository throws an error "cannot instantiate the persistence manager" Thanks ramesh -Ursprüngliche Nachricht- Von: Shane O'Sullivan [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 24. August 2006 11:45 An: users@jackrabbi

Re: SQL equivalent of Node.hasProperty?

2006-08-24 Thread Doug Douglass
Thanks for the reply (and others) Marcel, I thought #1 should have worked also. I'll write up a test to inspect the Row and it's values and see what's actually in there. Note that the nodes in question are an exported document view that is imported during Junit TestCase.setUp and removed again i

Re: creating node

2006-08-24 Thread Nicolas
Hi, Here is an example from the website: Node root = session.getRootNode(); // *Store content* Node hello = root.addNode("hello"); Node world = hello.addNode("world"); world.setProperty("message", "Hello, World!"); session.save();

FW: Custom Node Types XML

2006-08-24 Thread Shanmugam Gopal
Hi, I am trying to create a custom node by extending nt:resource so that I can add some custom properties to that node. Following is the Custom_nodetypes.xml configuration. http://www.jcp.org/jcr/nt/1.0"; xmlns:jcr="http://www.jcp.org/jcr/1.0"; xmlns:rep="internal" xmlns:sv="http://www.jcp.

Re: Jackrabbit UI Tool

2006-08-24 Thread Shane O'Sullivan
sure On 24/08/06, Marcel Reutegger <[EMAIL PROTECTED]> wrote: Shane O'Sullivan wrote: > try this - http://www.skynet.ie/~sos/JackRabbitViewer.zip > > Shane do you mind if I add your link to the wiki page? regards marcel

Re: Jackrabbit UI Tool

2006-08-24 Thread Marcel Reutegger
Shane O'Sullivan wrote: try this - http://www.skynet.ie/~sos/JackRabbitViewer.zip Shane do you mind if I add your link to the wiki page? regards marcel

Re: source for XPath extensions?

2006-08-24 Thread Marcel Reutegger
Doug Douglass wrote: My question stems from the recent threads discussing difficulities translating DASL basicsearch into XPath. How feasible would a "jcr:depth" extension be? I'm not sure what the exact requirements are to support a DAV:depth. The rfc says: "When the scope is a collection,

creating node

2006-08-24 Thread Ramesh Devaraj
Hi Is there any to create a Node than attach to the root node For example like this Node a = createNode("a"); Session.getRootNode().addNode(a) Thank in Advance Devaraj Ramesh Maas High Tech Software GmbH Hornbergstr. 49 70794 Filderstadt Germany http://www.maas.de - Wir in

Re: Jackrabbit UI Tool

2006-08-24 Thread Shane O'Sullivan
try this - http://www.skynet.ie/~sos/JackRabbitViewer.zip Shane On 24/08/06, Marcel Reutegger <[EMAIL PROTECTED]> wrote: JavaJ wrote: > Is there some kind of tool available that will allow you to inspect and > traverse your repository through a UI, like inspect nodes, properties, node > types?

Re: Jackrabbit UI Tool

2006-08-24 Thread Marcel Reutegger
JavaJ wrote: Is there some kind of tool available that will allow you to inspect and traverse your repository through a UI, like inspect nodes, properties, node types? There are a couple of links to applications that can work on top of JCR repositories on this wiki page: http://wiki.apache.o

Re: SQL equivalent of Node.hasProperty?

2006-08-24 Thread Marcel Reutegger
Doug Douglass wrote: I thought I knew the answer but I'm unable to get it right: If a node type baz is defined as having an optional property foo:bar (STRING), and I want to find all such nodes without a foo:bar property actually stored (i.e., Node.hasProperty("foo:bar") == false), I would exp

Re: Deployment model 3, accessing repository via RMI.

2006-08-24 Thread Stefan Guggisberg
On 8/23/06, Maxim Suponya <[EMAIL PROTECTED]> wrote: Hello, This is probably a silly question but I just don't get it, why local and remote implementations can't share same interfaces? I was playing with local access to jackrabbit and had written, for example, printNode(Node n) method. Now I'm t