Return-Path: Delivered-To: apmail-incubator-jackrabbit-dev-archive@www.apache.org Received: (qmail 60053 invoked from network); 21 Oct 2005 09:41:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 Oct 2005 09:41:47 -0000 Received: (qmail 64574 invoked by uid 500); 21 Oct 2005 09:41:45 -0000 Mailing-List: contact jackrabbit-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jackrabbit-dev@incubator.apache.org Delivered-To: mailing list jackrabbit-dev@incubator.apache.org Received: (qmail 64561 invoked by uid 99); 21 Oct 2005 09:41:45 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Oct 2005 02:41:45 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of marcel.reutegger@gmx.net designates 213.165.64.20 as permitted sender) Received: from [213.165.64.20] (HELO mail.gmx.net) (213.165.64.20) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 21 Oct 2005 02:41:45 -0700 Received: (qmail invoked by alias); 21 Oct 2005 09:41:23 -0000 Received: from adsl-84-226-114-63.adslplus.ch (EHLO [192.168.0.101]) [84.226.114.63] by mail.gmx.net (mp019) with SMTP; 21 Oct 2005 11:41:23 +0200 X-Authenticated: #894343 Message-ID: <4358B7C2.50109@gmx.net> Date: Fri, 21 Oct 2005 11:41:22 +0200 From: Marcel Reutegger User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: jackrabbit-dev@incubator.apache.org Subject: Re: Multithreading/Mutliuser(?) access References: <20051020114011.GA17016@jdevoff.zssm.zp.ua> <20051020122055.GE17016@jdevoff.zssm.zp.ua> <4357A197.30602@gmx.net> <20051020140937.GD78211@jdevoff.zssm.zp.ua> <4357B777.4090803@gmx.net> <20051021092636.GB1246@jdevoff.zssm.zp.ua> In-Reply-To: <20051021092636.GB1246@jdevoff.zssm.zp.ua> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N mix:lockable is a mixin node type, that means you cannot create a node with this node type directly. you can think of it as an abstract class, that you cannot instanciate. however you can add a mixin to an existing node using Node.addMixin() please have a look at secion 4.8 of the jcr spec. regards marcel Eugeny N Dzhurinsky wrote: > On Thu, Oct 20, 2005 at 05:27:51PM +0200, Marcel Reutegger wrote: > >>Because of JCRs data model this can potentially happen to any save() >>call, unless the modification is protected with a lock. >>when one session modifies a node and tries to save it, another session >>might have been faster and the changes of the latter session win. the >>first session then gets an InvalidItemStateException because it tried to >>save inconsistent data. > > > Okay, I understood this point. However, I found node should be set with > nodetype mix:lockable (?) to allow locks fo changes. But if I change node type > from nt:unstructured to mix:lockable, I'm getting exceptions: > javax.jcr.nodetype.ConstraintViolati > onException: no definition found in parent node's node type for new node: no > matching child node definition found for {}node1_1: no matching child node > definition found for{}node1_1 > [java] javax.jcr.nodetype.ConstraintViolationException: no definition > found in parent node's node type for new node: no matching child node > definition found for{}node1_1: no matching child node definition found > for {}node1_1 >