Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 86207 invoked from network); 3 May 2006 08:23:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 May 2006 08:23:38 -0000 Received: (qmail 37388 invoked by uid 500); 3 May 2006 08:23:23 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 37367 invoked by uid 500); 3 May 2006 08:23:23 -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 37356 invoked by uid 99); 3 May 2006 08:23:23 -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:23:23 -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 TBO@platon.net designates 85.235.244.201 as permitted sender) Received: from [85.235.244.201] (HELO cphsrv21.Platon.dk) (85.235.244.201) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 May 2006 01:23:21 -0700 Received: from CPHMAIL2.Platon.dk ([10.177.199.190]) by cphsrv21.Platon.dk with Microsoft SMTPSVC(6.0.3790.1830); Wed, 3 May 2006 10:22:58 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message Subject: RE: Servlet inter-communication MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Date: Wed, 3 May 2006 10:22:57 +0200 Content-Transfer-Encoding: quoted-printable Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Servlet inter-communication Thread-Index: AcZuh2DG2mvNxtObT/6zeHNgD4O2FQAAvqsg From: "Thomas Bolding" To: "Tomcat Users List" X-OriginalArrivalTime: 03 May 2006 08:22:58.0198 (UTC) FILETIME=[C8EA5360:01C66E8A] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Indeed. If it is within the same context this is trivial - look into singleton design pattern. If the servlets are from different contexts you will have to enable crosscontext in your server.xml I assume. In any case be aware of race conditions/dead locks - Java5.0 has new semaphore types which might help you. Regards Thomas -----Original Message----- From: Samuli Elomaa [mailto:samuli.elomaa@pp.inet.fi]=20 Sent: 3. maj 2006 09:57 To: Tomcat Users List Subject: Servlet inter-communication Hi, Is there any otherway for two servlets in same tomcat to communicate together except by http requests? Eg. could two servlets use somekind of shared memory? or send signals to each other? Samuli --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org