Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 87303 invoked from network); 16 Oct 2006 10:46:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 Oct 2006 10:46:50 -0000 Received: (qmail 46713 invoked by uid 500); 16 Oct 2006 10:46:50 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 46657 invoked by uid 500); 16 Oct 2006 10:46:49 -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 46642 invoked by uid 99); 16 Oct 2006 10:46:49 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Oct 2006 03:46:49 -0700 X-ASF-Spam-Status: No, hits=2.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of ted.roeloffzen@gmail.com designates 66.249.82.230 as permitted sender) Received: from [66.249.82.230] (HELO wx-out-0506.google.com) (66.249.82.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Oct 2006 03:46:47 -0700 Received: by wx-out-0506.google.com with SMTP id t13so1548315wxc for ; Mon, 16 Oct 2006 03:46:26 -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:references; b=AYnoIqbCJLZvUHN2+dBEeS7uTtDARQtmt0giTtrUORzgrhbT1Ag97zh4xtpWPuOQMdfQhJ8E77jWhuVv9mp8SQvBOEGAEZMcCsLCo0ycGs1F//xyc+quwJ7DQ6j2J/JrMl+rf7Zl96XBFvwV0F5iVVUVZSp7OmdHEBsbLhmISqk= Received: by 10.90.65.11 with SMTP id n11mr3257125aga; Mon, 16 Oct 2006 03:46:26 -0700 (PDT) Received: by 10.90.78.11 with HTTP; Mon, 16 Oct 2006 03:46:26 -0700 (PDT) Message-ID: <2f35a2640610160346u743928fv2d97cd658e832e78@mail.gmail.com> Date: Mon, 16 Oct 2006 12:46:26 +0200 From: "Ted Roeloffzen" To: users@jackrabbit.apache.org Subject: Re: is jackrabbit Threadsafe? In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_74358_9980963.1160995586436" References: <2f35a2640610160159m4fc9471cn7d8c92400fe15dee@mail.gmail.com> <8be731880610160225n6bea2674rad528239431c9d92@mail.gmail.com> <2f35a2640610160238j41077cf1j212d65b7bfd1aaae@mail.gmail.com> <2f35a2640610160315w33de6c7dvd7241deb7dce5c19@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_74358_9980963.1160995586436 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline So how would you do it? On 10/16/06, Alexandru Popescu wrote: > > On 10/16/06, Ted Roeloffzen wrote: > > So we don't have to create a variable for the JackRabbit session in the > > HTTP-session, > > I would say that this is in fact not recommended. Imagine what happens > with 2 concurrent requests that are using the same HttpSession? Is the > JCR Session still used in a thread safe manner? > > ./alex > -- > .w( the_mindstorm )p. > > > but we can use it in a request-cycle?? We are now using a > > simple Abstract class en getting the session from it. > > > > > > > > On 10/16/06, Alexandru Popescu > wrote: > > > > > > On 10/16/06, Ted Roeloffzen wrote: > > > > So when using it in a Web-application, every HTTP-session has to > have > > > its > > > > own JackRabbit-session. So then it would be threadsafe? > > > > > > > > > > > > > > I think you should think about it in request-scope and not on Http > > > session scope. Only request-response cycles are guaranteed to happen > > > on the same thread. > > > > > > ./alex > > > -- > > > .w( the_mindstorm )p. > > > > > > > On 10/16/06, Tobias Bocanegra wrote: > > > > > > > > > > if every thread uses it's own jcr session, yes. > > > > > regards, toby > > > > > > > > > > On 10/16/06, Ted Roeloffzen wrote: > > > > > > I would really like to know if JackRabbit is threadsafe. > > > > > > > > > > > > Greets, > > > > > > > > > > > > Ted > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > -----------------------------------------< > 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>--- > > > > > > > > > > > > > > > > > > > > > ------=_Part_74358_9980963.1160995586436--