jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Klimetschek" <aklim...@day.com>
Subject Re: Question about addNode and session.save()
Date Fri, 11 Jul 2008 09:24:18 GMT
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 <antongavazuk@gmail.com> 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
alexander.klimetschek@day.com

Mime
View raw message