Return-Path: X-Original-To: apmail-struts-user-archive@www.apache.org Delivered-To: apmail-struts-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F0991934A for ; Fri, 4 May 2012 21:17:21 +0000 (UTC) Received: (qmail 23502 invoked by uid 500); 4 May 2012 21:17:19 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 23474 invoked by uid 500); 4 May 2012 21:17:19 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 23466 invoked by uid 99); 4 May 2012 21:17:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 May 2012 21:17:19 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of diostm@gmail.com designates 209.85.213.48 as permitted sender) Received: from [209.85.213.48] (HELO mail-yw0-f48.google.com) (209.85.213.48) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 May 2012 21:17:13 +0000 Received: by yhfq46 with SMTP id q46so2395252yhf.35 for ; Fri, 04 May 2012 14:16:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=jt3H9a4gy7v81rLxt8XfxyqnhX9LvG1gTgvZ5+MtJe4=; b=UR01OsExmyhJhGsMWPbH6N8rmU+4CVuPK7Iq0JMVGtZtNQcv50ZLFsWaHKFPKx0jAL 2VwnA5KzEs6uJwLmlh9ERvymUgIyNIVV/dRQeaRqbOV9FonK6jBiv6DAPbWgiUs3qKgL LSUqf84PkvXv1/Q2lYzV6JG9YfL4poTjykeNpFjgqqZqThzYuNoqIiCshKVttmpG7208 zebHGsLavHcAzaeVfWKy3NWlHhT4+Kk5L0Qy27Ko2t7ZMKMS7he2MOdJqJVj48EM0J/r PNFh6cG/D2XfHN/eh8sg6mKN5QhwqWmwDZd8DTxHXhHnmw0tagVdwnUryFYJthIDfkm1 g2Aw== MIME-Version: 1.0 Received: by 10.50.187.226 with SMTP id fv2mr4000587igc.40.1336166212027; Fri, 04 May 2012 14:16:52 -0700 (PDT) Received: by 10.50.135.105 with HTTP; Fri, 4 May 2012 14:16:51 -0700 (PDT) In-Reply-To: References: <1A9CA81EFFD8434A9D15BC899F433A5B07A796@DLUMAIL03.sapient.com> Date: Sat, 5 May 2012 00:16:51 +0300 Message-ID: Subject: Re: ActionContext and the application context From: Dionis Argiri To: Struts Users Mailing List Content-Type: multipart/alternative; boundary=14dae9340a676dc74104bf3c7067 --14dae9340a676dc74104bf3c7067 Content-Type: text/plain; charset=ISO-8859-1 Good starting point would be reading code of action context etc, it could give you some answers that are not mentioned in any faq/tutorial/documentation. Simplified answer is - struts2 actions are thread safe (but that doesn't means that if you inject some statefull service in your bean, it'll be automatically thread safe). Reading source code & debugging gave me the answer about session's internal synchronization - SessionMap returned, that is thread safe wrapper around non-thread safe HttpSession. 2012/5/4 vEnkaTa mohAna rAo SriperumbUdUru > Go through this link > > http://stackoverflow.com/questions/10296108/struts2-actioncontext-and-valuestack > > > On Fri, May 4, 2012 at 11:18 AM, Puneet Babbar 2 >wrote: > > > Hi, > > > > I have slight confusion in understanding of the thread locality of the > > ActionContext. And action context contains the application, session, > > request... etc > > > > Talking about general servlet/jsp programming, anything set in the > > application context can be shared between different sessions or users. > > > > So since ActionContext is thread local(which means that values stored in > > the ActionContext are unique per thread). > > So, what is the impact on application context? Since its accessed using > > ActionContext. > > > > Regards > > > > Puneet babbar > > > > > --14dae9340a676dc74104bf3c7067--