jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Dürig <mic...@gmail.com>
Subject Re: Session.clone()
Date Fri, 25 Mar 2011 10:51:58 GMT

>> Wouldn't it be
>> better to prevent the session from timing out? Probably by pinging it
>> somehow?
>
> Yes, pinging is an option (it's the current workaround). Timeout is
> actually not the only problem: sharing a session for distinct operations
> is generally a problem.

Ok this is a different problem where cloning a session might make sense.
For the timeout issue I'd rather suggest to add a refresh() method. Like 
there is for the Lock class for preventing locks from timing out.

Michael


Mime
View raw message