Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 93815 invoked from network); 25 Nov 2008 17:58:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Nov 2008 17:58:59 -0000 Received: (qmail 38461 invoked by uid 500); 25 Nov 2008 17:58:57 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 38431 invoked by uid 500); 25 Nov 2008 17:58:57 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 38420 invoked by uid 99); 25 Nov 2008 17:58:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Nov 2008 09:58:57 -0800 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [192.61.61.105] (HELO usea-naimss3.unisys.com) (192.61.61.105) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Nov 2008 17:57:30 +0000 Received: from usea-nagw3.na.uis.unisys.com ([129.224.72.20]) by usea-naimss3 with InterScan Message Security Suite; Tue, 25 Nov 2008 11:58:15 -0600 Received: from usea-nagw3.na.uis.unisys.com ([129.224.72.55]) by usea-nagw3.na.uis.unisys.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 25 Nov 2008 11:58:14 -0600 Received: from usea-nahubcas2.na.uis.unisys.com ([129.224.76.115]) by usea-nagw3.na.uis.unisys.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 25 Nov 2008 11:58:14 -0600 Received: from USEA-EXCH7.na.uis.unisys.com ([129.224.76.38]) by usea-nahubcas2.na.uis.unisys.com ([129.224.76.115]) with mapi; Tue, 25 Nov 2008 11:58:14 -0600 From: "Caldarale, Charles R" To: Tomcat Users List Date: Tue, 25 Nov 2008 11:58:02 -0600 Subject: RE: SingleThreadModel for servlets Thread-Topic: SingleThreadModel for servlets Thread-Index: AclPJkCoR6kGaTe4RHCmkli65sxKfwAAGEZA Message-ID: <0AAE5AB84B013E45A7B61CB66943C17215A3D01F0C@USEA-EXCH7.na.uis.unisys.com> References: <39762.65998.qm@web39804.mail.mud.yahoo.com> In-Reply-To: <39762.65998.qm@web39804.mail.mud.yahoo.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginalArrivalTime: 25 Nov 2008 17:58:14.0803 (UTC) FILETIME=[637A0630:01C94F27] X-Virus-Checked: Checked by ClamAV on apache.org > From: Tony Anecito [mailto:adanecito@yahoo.com] > Subject: SingleThreadModel for servlets > > Reason I ask is if you have a slow service using the > multithreaded servlet it might be a bad idea especially > if there is synchronous methods used anywhere in the code > for a multithreaded servlet. Synchronization should be there for a reason, not just because the programm= er thought it looked pretty. If something needs to be protected, that requ= irement will exist regardless of whether there are one or many copies of a = particular Servlet object. If the programmer has been sloppy and is using = synchronization on instance variables for cases where local variables shoul= d have been used, you've got a badly written servlet that should be correct= ed. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MA= TERIAL and is thus for use only by the intended recipient. If you received = this in error, please contact the sender and delete the e-mail and its atta= chments from all computers. --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org