session.getRootNode().hasNode("node_name");
You'll probably want to look at the javadocs [1] for the JCR api
[1] http://www.day.com/maven/jsr170/javadocs/jcr-1.0/
2010/1/5 test123456 <[email protected]>:
>
>
> After getting the root node from the session object.
> I want to know a particular node is existing under anywhere in the tree.
>
> How to get the information of the existing nodes in jackrabbit.
>
> I need to create the node only if it is not present there.
> So i need to check this before the addNode() method.
>
> there is any methods available to search for particular node under the root
> node or a given node?
> --
> View this message in context:
> http://n4.nabble.com/Finding-the-existing-nodes-tp998971p998971.html
> Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
>