jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Klimetschek <aklim...@day.com>
Subject Re: WARN: Unclosed session detected ....
Date Mon, 20 Jul 2009 15:48:03 GMT
On Mon, Jul 20, 2009 at 4:19 PM, go canal<gocanal@yahoo.com> wrote:
> or does spring configuration creates a session :
>
>    <bean id="jcrSessionFactory"
> class="org.springmodules.jcr.jackrabbit.JackrabbitSessionFactory"
> destroy-method="destroy">
>  ....
>  </bean>

>From looking at the stacktrace, it seems this method creates the session:

org.springmodules.jcr.jackrabbit.ocm.JcrSessionFactory2.registerNamespaces(JcrSessionFactory2.java:181)

(it calls its own getSession(), which in turn creates the real Session
by asking Jackrabbit). This method should be fixed to call logout()
after registering the namespaces (if it does what it says ;-)) =>
Springmodules JCR

Regards,
Alex

-- 
Alexander Klimetschek
alexander.klimetschek@day.com

Mime
View raw message