Return-Path: Delivered-To: apmail-incubator-jackrabbit-dev-archive@www.apache.org Received: (qmail 6946 invoked from network); 2 Mar 2005 20:37:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 2 Mar 2005 20:37:27 -0000 Received: (qmail 7165 invoked by uid 500); 2 Mar 2005 20:37:16 -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 7131 invoked by uid 99); 2 Mar 2005 20:37:16 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from postfix3-1.free.fr (HELO postfix3-1.free.fr) (213.228.0.44) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 02 Mar 2005 12:37:12 -0800 Received: from [192.168.0.100] (lns-vlq-39f-81-56-134-235.adsl.proxad.net [81.56.134.235]) by postfix3-1.free.fr (Postfix) with ESMTP id 68786173560 for ; Wed, 2 Mar 2005 21:37:07 +0100 (CET) Message-ID: <422623F7.6080400@apache.org> Date: Wed, 02 Mar 2005 21:37:11 +0100 From: Sylvain Wallez Organization: Anyware Technologies User-Agent: Mozilla Thunderbird 1.0 (Macintosh/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: jackrabbit-dev@incubator.apache.org Subject: Re: Lifetime of a session? References: <4225DDEA.9090609@apache.org> In-Reply-To: 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 Suhail M. Ahmed wrote: > Hi Sylvain, > > The Session object is returned on performing a login on the > repository. Looking at RepositoryIml you will see > > Session ses = new XASessionImpl(this, lc, wspInfo.getConfig()); > activeSessions.put(ses, ses); > > You should I think couple the repository session life cycle to your > http session life cycle. I haven't dug deeper in to the object graph > derived from session so I can't say anything about the thread safety > of Item and its sub classes. I do see some nifty synchronization in > the content store implementation so I would think that at that level > things are thread safe. I think the optimum route is to use a session > listener to login and logout from the repository. That was my opinion also, but the thread-safety on session itself may be a concern if a single user issues several request simultaneously. How will the transaction manager behave in such circumstances? Sylvain -- Sylvain Wallez Anyware Technologies http://www.apache.org/~sylvain http://www.anyware-tech.com { XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }