From users-return-49-apmail-jackrabbit-users-archive=jackrabbit.apache.org@jackrabbit.apache.org Tue Apr 18 09:49:31 2006 Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 10462 invoked from network); 18 Apr 2006 09:49:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Apr 2006 09:49:31 -0000 Received: (qmail 49229 invoked by uid 500); 18 Apr 2006 09:49:31 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 49212 invoked by uid 500); 18 Apr 2006 09:49:30 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 49203 invoked by uid 99); 18 Apr 2006 09:49:30 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Apr 2006 02:49:30 -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; Tue, 18 Apr 2006 02:49:29 -0700 Received: (qmail invoked by alias); 18 Apr 2006 09:49:06 -0000 Received: from bsl-rtr.day.com (EHLO [10.0.0.55]) [212.249.34.130] by mail.gmx.net (mp020) with SMTP; 18 Apr 2006 11:49:06 +0200 X-Authenticated: #894343 Message-ID: <4444B610.5000403@gmx.net> Date: Tue, 18 Apr 2006 11:49:04 +0200 From: Marcel Reutegger User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: users@jackrabbit.apache.org Subject: Re: sequence References: <1144852015.11511.12.camel@localhost> <443DFDB4.7090802@gmx.net> In-Reply-To: <443DFDB4.7090802@gmx.net> 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 and now there's a utility available in jackrabbit (in svn trunk) that does exactly this: org.apache.jackrabbit.util.Locked have a look at the javadoc and try it out if you like. there are also a couple of test cases that may serve as a starting point: org.apache.jackrabbit.core.LockTest regards marcel Marcel Reutegger wrote: > I would do it this way: > > - use a lockable node with a number property > - then use a utility like the one discussed here: > http://thread.gmane.org/gmane.comp.apache.jackrabbit.devel/2661/focus=2693 > to increment the property > > regards > marcel > > Torgeir Veimo wrote: >> Is there an easy way to simulate a sequence generator with a jackrabbit >> repository? >> > >