jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Klimetschek" <aklim...@day.com>
Subject Re: Adding child to node obatined from iterator doesn't work
Date Wed, 25 Jun 2008 15:12:34 GMT
On Wed, Jun 25, 2008 at 10:14 AM, Jukka Zitting <jukka.zitting@gmail.com> wrote:
> Looks like you are using two sessions here (i.e. you make changes in
> the session returned by jcrTemplate.getSessionFactory().getSession(),
> but save them using jcrTemplate.save()).

Yes. When using the spring modules, you have to be aware that
JcrSessionFactory.getSession() returns a new session every time (at
least for the built-in implementations). Other built-in parts that
rely on session factory might even hide that fact, too.


Alexander Klimetschek

View raw message