jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tobias Bocanegra" <tobias.bocane...@day.com>
Subject Re: Best practice for working with multiple sessions needed
Date Sun, 24 Sep 2006 15:10:05 GMT
> 1. my main problem is that I don't see an easy way of how to recover from
> such a crash. I don't even see a way to check first because ItemState is
> jackrabbit internal
you only can do a node.refresh() and try to save you modification again.

> 2. I believe that in almost every webapp adding a node to some special entry
> node (such as a folder for messages) is very common.
use locking.

> 3. using a shared session does not seem to be an option (synch issue)
no. sessions are not threadsave.

> Is there some sort of best practice working with multiple sessions? Does
> this mean that one has to implement an application specific locking
> mechanism?
make you node: mix:lockable

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