Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 42612 invoked from network); 19 Jun 2006 15:53:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Jun 2006 15:53:27 -0000 Received: (qmail 28818 invoked by uid 500); 19 Jun 2006 15:51:50 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 28263 invoked by uid 500); 19 Jun 2006 15:51:47 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 23986 invoked by uid 99); 19 Jun 2006 15:51:25 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Jun 2006 08:51:25 -0700 X-ASF-Spam-Status: No, hits=1.9 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,MSGID_FROM_MTA_HEADER,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of haishanmugam@hotmail.com designates 64.4.16.64 as permitted sender) Received: from [64.4.16.64] (HELO hotmail.com) (64.4.16.64) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Jun 2006 08:51:17 -0700 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 19 Jun 2006 08:50:57 -0700 Message-ID: Received: from 80.15.249.164 by by22fd.bay22.hotmail.msn.com with HTTP; Mon, 19 Jun 2006 15:50:54 GMT X-Originating-IP: [125.22.72.146] X-Originating-Email: [haishanmugam@hotmail.com] X-Sender: haishanmugam@hotmail.com In-Reply-To: <8be731880606190445q6577d55cw1a99fa86ce072ab3@mail.gmail.com> From: "Shanmugam Gopal" To: tobias.bocanegra@day.com, dev@jackrabbit.apache.org Subject: Re: Questions about versioning Date: Mon, 19 Jun 2006 21:20:54 +0530 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 19 Jun 2006 15:50:57.0011 (UTC) FILETIME=[2759F430:01C693B8] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Dear All, With reference to Jackrabbit versioning, I have some questions. Let us assume that the version history of a node is something like 1.1, 1.2, 1.3, 1.4(current version). Now from version 1.4, it is restored to version 1.2 using restore method of javax.jcr.Node. After making one more change to this node, the next version becomes 1.3.1 ? It is very confusing...!!!! Do you people think is it correct behaviour ? And, Is it possible to have versioning sequence like 1, 2, 3, 4......etc, instead of 1.1, 1.2, 1.3.....etc. Regards, Shan >From: "Tobias Bocanegra" >Reply-To: tobias.bocanegra@day.com >To: dev@jackrabbit.apache.org >Subject: Re: Questions about versioning >Date: Mon, 19 Jun 2006 13:45:00 +0200 > >hi paco, >please note, that versioning has nothing to do with locking. > >>- If the user A performs a Checkout, why can user B modify and checkin? >becauses it's not locking.... > >>- Do the A user have to lock himself the node? >yes. > >>- If the user B can modify and perform a checkin, what happends if >>meanwhile user A modify the node? In my test, the last modification >>(user A) is versioned, and the user B modification (performed before >>user A modification) is lost. Is this ok? >yes. > >>So, if all these is fine I have to do something like this: >> >>-> User A lock node >>-> User A performs checkout >>-> User A modify node >>-> User A performs checkin >>-> User A unlock node >> >>isn't it? >correct. > >if you don't want to use locking, you can create several workspaces >for you users. for example workspace A for user A, and workspace B for >user B: > >- User A logs into workspace A >- User B logs into workspace B >- A does a checkout of Node N >- B does a checkout of Node N >- A modifies N and does checkin -> version 1.1 >- B modifies N and does checkin -> version 1.0.1 (new branch, since >1.1 already exists) > >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 >--- _________________________________________________________________ Tried the new MSN Messenger? It�s cool! Download now. http://messenger.msn.com/Download/Default.aspx?mkt=en-in