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: Questions about opened Session
Date Wed, 22 Apr 2009 10:18:01 GMT
Hi,

On Wed, Apr 22, 2009 at 12:11 PM, Taeho Kang <tkang1@gmail.com> wrote:
> 1. Open a Session whenever needed and destroy it immediately after the use

This would be my default approach. Creating a new session is a
reasonably light-weight operation in Jackrabbit.

> Due to the initialization cost of creating/connecting to the repository, I'm
> thinking of going with (2)...

Note that the initialization costs are mostly associated with creating
the Repository instance.

BR,

Jukka Zitting

Mime
View raw message