jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jukka Zitting <jukka.zitt...@gmail.com>
Subject Re: jcr session creation takes 2 seconds
Date Thu, 22 Oct 2009 12:50:34 GMT
Hi,

On Thu, Oct 22, 2009 at 2:47 PM, Torgeir Veimo <torgeir@netenviron.com> wrote:
> 2009/10/22 Jukka Zitting <jukka.zitting@gmail.com>:
>> Are you using the TransientRepository class? Then it could be that the
>> entire repository gets started up when you run login(). You can avoid
>> that by either keeping one long-lived session open, [...]
>
> Wouldn't the finalizer in Session call the close() method internally
> at some point, if the session is not referenced elsewhere?

Sure, but what's preventing you from keeping the session reference?

BR,

Jukka Zitting

Mime
View raw message