jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tobias Bocanegra" <tobias.bocane...@day.com>
Subject Re: session lifecycle
Date Mon, 06 Mar 2006 14:49:15 GMT
hi stephan

JCR sessions in jackrabbit are rather heavy objects. there are several
caches for Paths, ItemStates, Items,  etc...some of them are shared
among sessions, but some not. i would do some sort of session
pooling/sharing/reuse but you need to keep in mind the following
points:

1) sessions hold local state information, such as transiently
modified items, namespace mappings, etc. so they *cannot* be shared
among clients that do write operations.
2) sessions are *not* 100% thread safe. so any read operation must be
synchronized.

hope this helps,
regards, toby


--
-----------------------------------------< tobias.bocanegra@day.com >---
Tobias Bocanegra, Day Management AG, Barfuesserplatz 6, CH - 4001 Basel
T +41 61 226 98 98, F +41 61 226 98 97
-----------------------------------------------< http://www.day.com >---

Mime
View raw message