From users-return-8901-apmail-jackrabbit-users-archive=jackrabbit.apache.org@jackrabbit.apache.org Tue Sep 09 06:42:17 2008 Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 19028 invoked from network); 9 Sep 2008 06:42:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Sep 2008 06:42:17 -0000 Received: (qmail 21409 invoked by uid 500); 9 Sep 2008 06:42:13 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 21397 invoked by uid 500); 9 Sep 2008 06:42:13 -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 21386 invoked by uid 99); 9 Sep 2008 06:42:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Sep 2008 23:42:13 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of michael.wechner@wyona.com designates 195.226.6.75 as permitted sender) Received: from [195.226.6.75] (HELO server1.example.com) (195.226.6.75) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Sep 2008 06:41:12 +0000 Received: from [192.168.1.47] (unknown [195.226.6.66]) by server1.example.com (Postfix) with ESMTP id 7D46F10C94D for ; Tue, 9 Sep 2008 08:50:24 +0200 (CEST) Message-ID: <48C61A8A.3090202@wyona.com> Date: Tue, 09 Sep 2008 08:41:14 +0200 From: Michael Wechner User-Agent: Thunderbird 2.0.0.14 (X11/20080421) MIME-Version: 1.0 To: users@jackrabbit.apache.org Subject: Re: Session Handling in WebApplication References: <0E46E3619326224CB40CC30C2E36364E038F8DA1@zde008.lenze.com> In-Reply-To: <0E46E3619326224CB40CC30C2E36364E038F8DA1@zde008.lenze.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Krohne, Frank - ENCOWAY schrieb: > Hi, > > > > > It would be great to get some hints or tips on how to handle jackrabbit > sessions in a web application. > AFAIK: "Session Handling -- a JCR session is obtained by providing credentials to the Repository implementation. Also, the methods on it are not thread-safe. The easiest approach for using in a Web Application thus is to instantiate a new JCR session for each HTTP request. This is also the approach used by the Jackrabbit WebDAV servlet. It is not expected that this affects performance negatively; session instatiation should be cheap. If this assumption turns out to be wrong, session pooling should be considered." HTH Michael > > > Thanks in advance > > > > Frank > > >