Open Source Support Tools
 
Search Item
 
Summary
  Mail Thread
Title: versioning checkout timeout
Project: jackrabbit
Item Last Modified: Sun Aug 24 09:24:47 PDT 2008
Tags:  
 
 
MailThread access alex alexander alexander+klimetschek alexander.klimetschek@day.com application automatically background calls checked checkedout checkin checkout com day document documents jackrabbit jr kind klimetschek martin methods multiple node nodes properly session sessions state stored thread timeout users versioning
Details
versioning checkout timeout
2 Messages Collapse AllExpand All
Alexander Klimetschek to users24 Aug 2008 16:24:47 GMT
On Fri, Aug 22, 2008 at 9:19 AM, Martin Mayr <mamayr@cosy.sbg.ac.at> wrote:
> i want to block multiple users from editing a file stored with JR
> through the checkin(), checkout() and isCheckedOut() methods - so if one
> does a checkout, no one else should be able to get the document until
> it's checked in again
>
> is there a predefined time after which the node looses it's checkedOut
> status? (so it won't keep the status checkedOut for lets say a whole day )

No, the node stays in checkedOut state until the application calls
checkin again.

> because my system 'may' encounter problems, if a user doesn't close the
> session appropiatly and therefore his opened documents stay in
> checkedOut status

You can handle this problem by either checking for the checked out
state in other sessions (before they try to access the node), by
writing some kind of on-client-exit handler that ensures all documents
are checked-in automatically (if that is desired) or some background
thread that looks for nodes that are checked out for a certain period
of time and check them in. Although I would think that the changes
made by a client that did not close the session properly should not be
trusted...

Regards,
Alex

--
Alexander Klimetschek
alexander.klimetschek@day.com



Martin Mayr to users22 Aug 2008 07:19:12 GMT
i want to block multiple users from editing a file stored with JR
through the checkin(), checkout() and isCheckedOut() methods - so if one
does a checkout, no one else should be able to get the document until
it's checked in again

is there a predefined time after which the node looses it's checkedOut
status? (so it won't keep the status checkedOut for lets say a whole day )

because my system 'may' encounter problems, if a user doesn't close the
session appropiatly and therefore his opened documents stay in
checkedOut status

martin mayr