From users-return-900-apmail-jackrabbit-users-archive=jackrabbit.apache.org@jackrabbit.apache.org Fri Sep 22 06:29:56 2006 Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 53715 invoked from network); 22 Sep 2006 06:29:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 22 Sep 2006 06:29:56 -0000 Received: (qmail 99645 invoked by uid 500); 22 Sep 2006 06:29:55 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 99631 invoked by uid 500); 22 Sep 2006 06:29:55 -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 99622 invoked by uid 99); 22 Sep 2006 06:29:55 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Sep 2006 23:29:55 -0700 Authentication-Results: idunn.apache.osuosl.org header.from=jukka.zitting@gmail.com; domainkeys=good Authentication-Results: idunn.apache.osuosl.org smtp.mail=jukka.zitting@gmail.com; spf=pass X-ASF-Spam-Status: No, hits=0.5 required=5.0 tests=DNS_FROM_RFC_ABUSE Received-SPF: pass (idunn.apache.osuosl.org: domain gmail.com designates 66.249.82.233 as permitted sender) DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 Received: from [66.249.82.233] ([66.249.82.233:54573] helo=wx-out-0506.google.com) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id 93/AD-06791-FD283154 for ; Thu, 21 Sep 2006 23:29:51 -0700 Received: by wx-out-0506.google.com with SMTP id t13so954113wxc for ; Thu, 21 Sep 2006 23:29:48 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=suaESoTw8qKFcbzD8OQi2Hn4e6XrSeSOJhsZLlx5mfsz4OeNqyNp8yZnPxlMe2szFnAdC7cOGsMjOXc38HPUnZJfD2pSN2zbhUWgQS32gQgUZ9oczzdfgwZXaIQkdRkB+sfTY432tHlXB00o0BMTvCMCixTlLC7kYR3u47Z0+CI= Received: by 10.90.68.15 with SMTP id q15mr28602aga; Thu, 21 Sep 2006 23:29:46 -0700 (PDT) Received: by 10.90.97.2 with HTTP; Thu, 21 Sep 2006 23:29:46 -0700 (PDT) Message-ID: <510143ac0609212329s2dc154cfk3b17dc4797148c19@mail.gmail.com> Date: Fri, 22 Sep 2006 09:29:46 +0300 From: "Jukka Zitting" To: users@jackrabbit.apache.org Subject: Re: Working with JCR in highly concurrent applications In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <510143ac0609201203y41a17d3fje9d24cb24ffd616b@mail.gmail.com> <510143ac0609201256h5bfbb875v6b199cdb9892f59f@mail.gmail.com> <510143ac0609201441t3d3c9809v8686e14ff8dfbf86@mail.gmail.com> <510143ac0609211600s134ff2a8qdb3f8e9b1066bad5@mail.gmail.com> <510143ac0609212317t2140edd9yc743e76310483caa@mail.gmail.com> X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, On 9/22/06, Alexandru Popescu wrote: > On 9/22/06, Jukka Zitting wrote: > > Hmm, I've never thought about it from that angle. > > There are always corner scenarios that you can take advantage of ;-). True hacker spirit! :-) > > There are some > > internal caches that get modified even in read-only sessions. I don't > > think those data structures are thread-safe, so you might end up > > corrupting the internal state. > > Yes, I've noticed those but I remember most of them were synched > collections. However, I will try to recheck. If you can point some > places upfront that would be great, and would limit my research a lot. Check at least the CachingHierarchyManager and ItemStateReferenceCache classes. BR, Jukka Zitting -- Yukatan - http://yukatan.fi/ - info@yukatan.fi Software craftsmanship, JCR consulting, and Java development