Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 89939 invoked from network); 3 May 2006 08:32:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 May 2006 08:32:45 -0000 Received: (qmail 46829 invoked by uid 500); 3 May 2006 08:32:29 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 46806 invoked by uid 500); 3 May 2006 08:32:29 -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 46795 invoked by uid 99); 3 May 2006 08:32:29 -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 01:32:29 -0700 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=UNRESOLVED_TEMPLATE X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [62.101.90.2] (HELO mail.eng.it) (62.101.90.2) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 May 2006 01:32:28 -0700 Received: from mail.eng.it (polluce-gb [192.168.99.18]) by deliver.antivirus (Postfix) with SMTP id 7B2FB18038 for ; Wed, 3 May 2006 10:32:06 +0200 (CEST) Received: from [192.168.35.75] (unknown [192.168.35.75]) by mail.eng.it (Postfix) with ESMTP id 2BC2418004 for ; Wed, 3 May 2006 10:32:06 +0200 (CEST) Message-ID: <44586C68.6030505@tariffenet.it> Date: Wed, 03 May 2006 10:40:08 +0200 From: Antonio Petrelli User-Agent: Mozilla Thunderbird 1.5.0.2 (Windows/20060308) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Servlet inter-communication References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Version: 5.1.2.240295 X-PerlMx-Spam: Gauge=%%XGAUGE%%%%IGAUGE%%, Probability=%%PROB%%, Report='%%HITS%%' X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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!). Samuli, I think that you should try portlets to achieve inter-portlet communication. Servlets are not designed to communicate each other! Or maybe this is a false problem and you can solve your problems by better design your business logic. Ciao Antonio --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org