jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anton Gavazuk" <antongava...@gmail.com>
Subject Re: Question about addNode and session.save()
Date Fri, 11 Jul 2008 09:40:11 GMT
yes, thats it - I got exception  when I trying to access the nodeC

that is the way how I recognized that nodeC is not being stored.

2008/7/11 Alexander Klimetschek <aklimets@day.com>:
> 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