Return-Path: Delivered-To: apmail-incubator-jackrabbit-dev-archive@www.apache.org Received: (qmail 5759 invoked from network); 16 Mar 2005 16:28:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 16 Mar 2005 16:28:53 -0000 Received: (qmail 88820 invoked by uid 500); 16 Mar 2005 16:28:52 -0000 Mailing-List: contact jackrabbit-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jackrabbit-dev@incubator.apache.org Delivered-To: mailing list jackrabbit-dev@incubator.apache.org Received: (qmail 88805 invoked by uid 99); 16 Mar 2005 16:28:52 -0000 X-ASF-Spam-Status: No, hits=0.4 required=10.0 tests=DNS_FROM_RFC_ABUSE,RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of edgarpoce@gmail.com designates 64.233.184.197 as permitted sender) Received: from wproxy.gmail.com (HELO wproxy.gmail.com) (64.233.184.197) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 16 Mar 2005 08:28:52 -0800 Received: by wproxy.gmail.com with SMTP id 68so1899wra for ; Wed, 16 Mar 2005 08:28:47 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:x-accept-language:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=WGIJUc49RbrC+96BhIQqOiVUTdyKGlef+i6l7PYKS7umbTGzZdsyRAYdYfRKOqMFKKXyGv9hBqC8gppOkietnKbB2egAbS49GdhebSc9NhhYCq8wgia7nyq6o8DVKOkxyvCzkTLNxmQmEPgKk+12FSHv9W5v9hgUApOdkXoQsnE= Received: by 10.54.54.78 with SMTP id c78mr1267206wra; Wed, 16 Mar 2005 08:28:47 -0800 (PST) Received: from ?192.168.0.187? ([24.232.12.20]) by mx.gmail.com with ESMTP id 34sm928457wra.2005.03.16.08.28.45; Wed, 16 Mar 2005 08:28:47 -0800 (PST) Message-ID: <42385EB9.1030201@gmail.com> Date: Wed, 16 Mar 2005 13:28:41 -0300 From: Edgar Poce User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: jackrabbit-dev@incubator.apache.org Subject: Re: Adivce about session References: <423858FB.4030106@capgemini.fr> In-Reply-To: <423858FB.4030106@capgemini.fr> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi Bertrand LEGA wrote: > I would be glad to hear your thoughts about using the jcr session in a > J2EE web application. > > Basically, there are two solutions : > > 1. create a session to the jcr each time a page access to the > repository. It is basically what's the jcr tags propose to do : > The session is destroyed when the processing of the jsp page is done. > 2. Create a jcr session when the HttpSession is created and use it > during the user session (ie the jcr session stored in the httpsession). > This jcr session is destroyed when the HttpSession will be (using a > HttpSessionListener for example). Both approaches are supported in the jcr taglib. the example 2 would be in a SessionListener: session.setAttribute("mySessionKey",mySession) in jsp: > > Personnally, I would prefer the solution 2. me too > What do you think about it ? > Do you know if tests had been carried with a important number of > concurrent sessions (100-1000) ? > > > Regards, > Bertrand. > regards edgar > This message contains information that may be privileged or confidential > and is the property of the Capgemini Group. It is intended only for the > person to whom it is addressed. If you are not the intended recipient, > you are not authorized to read, print, retain, copy, disseminate, > distribute, or use this message or any part thereof. If you receive > this message in error, please notify the sender immediately and delete > all copies of this message. > >