From users-return-144837-apmail-tomcat-users-archive=tomcat.apache.org@tomcat.apache.org Wed May 03 13:53:33 2006 Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 84910 invoked from network); 3 May 2006 13:52:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 May 2006 13:52:59 -0000 Received: (qmail 73671 invoked by uid 500); 3 May 2006 13:51:57 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 73548 invoked by uid 500); 3 May 2006 13:51:56 -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 73471 invoked by uid 99); 3 May 2006 13:51:56 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 May 2006 06:51:56 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of rosenberg.leon@googlemail.com designates 64.233.162.195 as permitted sender) Received: from [64.233.162.195] (HELO nz-out-0102.google.com) (64.233.162.195) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 May 2006 06:51:55 -0700 Received: by nz-out-0102.google.com with SMTP id 12so176092nzp for ; Wed, 03 May 2006 06:51:35 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=googlemail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=TmYBTbWd3+AdT3MVaPoHMSuwYc3NwePe8US52xVpe/AjB/v0RPTyz6X+gQj+9TTkdAc3CXDflA4i+h67GYt11IISrVluOs9+v3sii6P0lTKc3DYhMsmYqirzceFvDwWXtu+ahJlfXIlgfWjZYEv/EqLO6OxkAR9X7IFv6ZgFV5s= Received: by 10.65.225.1 with SMTP id c1mr136082qbr; Wed, 03 May 2006 06:51:35 -0700 (PDT) Received: by 10.65.97.10 with HTTP; Wed, 3 May 2006 06:51:34 -0700 (PDT) Message-ID: <327858f40605030651g31127e8fwedd0c819dcfa4f52@mail.gmail.com> Date: Wed, 3 May 2006 15:51:34 +0200 From: "Leon Rosenberg" To: "Tomcat Users List" Subject: Re: Servlet inter-communication In-Reply-To: <44586C68.6030505@tariffenet.it> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <44586C68.6030505@tariffenet.it> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 5/3/06, Antonio Petrelli wrote: > Thomas Bolding ha scritto: > > Indeed. If it is within the same context this is trivial - look into > > singleton design pattern. > > It's a bad idea to use singletons in a web application, especially when > the application needs to be reloaded (this is one of the causes that > make lots of people write about an OutOfMemoryException!). Heh? Could you explain it a bit more? What's the difference whether I have 10 instances of the same class or just one for reloading? > Antonio Leon --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org