Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 1823 invoked from network); 17 Sep 2007 14:47:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Sep 2007 14:47:24 -0000 Received: (qmail 21052 invoked by uid 500); 17 Sep 2007 14:47:14 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 21030 invoked by uid 500); 17 Sep 2007 14:47:14 -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 21008 invoked by uid 99); 17 Sep 2007 14:47:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Sep 2007 07:47:14 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.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; Mon, 17 Sep 2007 14:49:04 +0000 Received: (qmail invoked by alias); 17 Sep 2007 14:46:52 -0000 Received: from bsl-rtr.day.com (EHLO [10.0.0.127]) [62.192.10.254] by mail.gmx.net (mp010) with SMTP; 17 Sep 2007 16:46:52 +0200 X-Authenticated: #894343 X-Provags-ID: V01U2FsdGVkX1/VTSIa6+fV9cmDatdA1MkDkqcYYfAV3q3AWQ0fDK 0fs2moCVUu3V/Y Message-ID: <46EE9358.8010209@gmx.net> Date: Mon, 17 Sep 2007 16:46:48 +0200 From: Marcel Reutegger User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: dev@jackrabbit.apache.org Subject: Re: Synchronized methods in ItemManager References: <34B0CDC6176518459F3A96E8C09196B8064C4DD5@darth-vader.nijmegen.gx.nl> <90a8d1c00709140847y2cd6a2d7vede2845e8816db0e@mail.gmail.com> <34B0CDC6176518459F3A96E8C09196B80584B23E@darth-vader.nijmegen.gx.nl> <5f211bd50709140912y3c3f7c6dpd89b5df7e6755283@mail.gmail.com> <34B0CDC6176518459F3A96E8C09196B8064C4E76@darth-vader.nijmegen.gx.nl> <46EE3176.8090101@gmx.net> <46EE3FDD.3050906@gmx.de> <46EE86E8.8040108@gmx.net> <46EE8843.1080206@gmx.de> In-Reply-To: <46EE8843.1080206@gmx.de> 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 Julian Reschke wrote: > Marcel Reutegger wrote: >> Julian Reschke wrote: >>> Marcel Reutegger wrote: >>>> our official statement still is you may use multiple threads on a >>>> session that just read but a single thread on a session that writes. in >>> >>> - Could you please provide a pointer to that statement? >> >> well, maybe 'official' is the wrong term. whenever these kind of >> questions arise on the mailing list, we tell people that reading from >> multiple thread is probably safe, while writing is not. searching the >> mail archive should give you some of those statements. > > I see. Note that you now said "is probably safe" :-) yeah, I looked up the relevant messages in the archive and found that we only say 'probably' ;) >>> Finally, how does that translate to JCR2SPI and the SPI interfaces? >>> It seems we need to clarify the thread-safety of >>> spi.RepositoryService and spi.SessionInfo... >> >> I agree, we should definitively do that. Again, I think jcr2spi should >> be entirely thread safe for any kind of operation, while the SPI level >> is IMO debatable, because it is at a lower level. > > FWIW, we should make up our minds what we want to agree, and clearly > document that. I don't care a lot about what we say, but I'm not > convinced that guaranteeing more than JSR-170 says would be good for > interoperability of clients. well, the main reason behind my call for a thread-safe implementation is for clients that use a session from multiple sessions *by mistake* and not on purpose. the repository should not break in any case. regards marcel