Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 4822 invoked from network); 16 Jun 2004 14:37:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 16 Jun 2004 14:37:06 -0000 Received: (qmail 36690 invoked by uid 500); 16 Jun 2004 14:34:37 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 36651 invoked by uid 500); 16 Jun 2004 14:34:36 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 36579 invoked by uid 99); 16 Jun 2004 14:34:35 -0000 Received: from [66.33.216.24] (HELO smarty.dreamhost.com) (66.33.216.24) by apache.org (qpsmtpd/0.27.1) with ESMTP; Wed, 16 Jun 2004 07:34:35 -0700 Received: from strange.dreamhost.com (strange.dreamhost.com [66.33.193.57]) by smarty.dreamhost.com (Postfix) with ESMTP id 3C6DB13F61C for ; Wed, 16 Jun 2004 07:34:20 -0700 (PDT) Received: by strange.dreamhost.com (Postfix, from userid 7734) id BF2A26AA16; Wed, 16 Jun 2004 07:34:20 -0700 (PDT) Date: Wed, 16 Jun 2004 09:34:20 -0500 From: QM To: Tomcat Users List Subject: Re: Multiple requests sharing the same Servlet instance Message-ID: <20040616143420.GC26902@strange.dreamhost.com> References: <9C5166762F311146951505C6790A9CF80229BB50@US-VS1.corp.mpi.com> <06a501c453ad$7320bef0$bf00a8c0@blraddrcom> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <06a501c453ad$7320bef0$bf00a8c0@blraddrcom> User-Agent: Mutt/1.3.28i X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On Wed, Jun 16, 2004 at 07:53:07PM +0530, Keith Hankin wrote: : Maybe I'm being dumb, but it seems to me that based upon what I'm hearing, : there is no benefit of doing Servlet instance pooling since the Servlets : aren't true objects; they are merely places to put code, since no local : state is useful. Depends on how you look at it: they are true objects in that they are self-referential, and hold some (shareable) state. Check out the javadoc for the HttpServlet class: by default, the ServletConfig and some other vars are shared, and you're more than welcome to share thread-safe objects (such as a logger). I'd certainly call those local objects "useful." =) -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org