Do you get any exceptions? This code should retrieve the persisted nodes:

Node a = session.getRootNode().getNode("path/to/a");
Node b = a.getNode("nodeB");
Node c = a.getNode("nodeB/nodeC"); // or b.getNode("nodeC");


Regards,
Alex

On Fri, Jul 11, 2008 at 9:32 AM, Anton Gavazuk <[EMAIL PROTECTED]> wrote:
> Hi folks,
>
> tiny question
>
> i have code like this:
>
> Node a = getBlaBlaBla();
> Node b  = a.addNode("nodeB");
> Node c = b.addNode("nodeC");
> session.save();
>
> And I recognized that nodeB has been stored but nodeC is not stored.
> According to JCR docs all changes in which have been made in
> particular session must be stored in a storage...
> What is wrong?
>
> Some env info:
> Jackrabbit 1.4 used through JCA adapter in Jboss.
>
> Many thanks.
>



-- 
Alexander Klimetschek
[EMAIL PROTECTED]

Reply via email to