Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 04E21DDBD for ; Fri, 27 Jul 2012 20:56:04 +0000 (UTC) Received: (qmail 94677 invoked by uid 500); 27 Jul 2012 20:56:00 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 94642 invoked by uid 500); 27 Jul 2012 20:56:00 -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 94633 invoked by uid 99); 27 Jul 2012 20:56:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Jul 2012 20:56:00 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ben@souther.us designates 74.119.145.130 as permitted sender) Received: from [74.119.145.130] (HELO solar.assortedinternet.com) (74.119.145.130) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Jul 2012 20:55:52 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=souther.us; s=default; h=Mime-Version:Message-ID:Content-Transfer-Encoding:Content-Type:References:In-Reply-To:Date:To:From:Subject; bh=tTBQJR7ev0x3mwjxeUNDgYSaGuj1D2stY9KNEuM/xeY=; b=Jyi2g+GIh7fo7o/jGheDVc10jbSHzXzjqniAn9sPbzK4+y3teIQhXsQFLD4pBW9j81eqd1BjTbOdMf1dCbv2Dm+gkA2NlzX41uipJZUhixDvZUgcnDW8VEyPPfvOJT33; Received: from [75.147.4.177] (port=31144 helo=[192.168.0.53]) by solar.assortedinternet.com with esmtpa (Exim 4.77) (envelope-from ) id 1SurZL-0004Ay-QR for users@tomcat.apache.org; Fri, 27 Jul 2012 16:55:32 -0400 Subject: RE: Permanent servlet in TC7 From: Ben Souther To: users@tomcat.apache.org Date: Fri, 27 Jul 2012 16:55:30 -0400 In-Reply-To: <774CCD676B63FE49B1291BE556DD698522747B1A@ALVMBXW02.prod.quest.corp> References: <774CCD676B63FE49B1291BE556DD698522747AA7@ALVMBXW02.prod.quest.corp> <50119C9F.9010601@christopherschultz.net> <774CCD676B63FE49B1291BE556DD698522747B1A@ALVMBXW02.prod.quest.corp> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.0.2 (3.0.2-3.fc15) Content-Transfer-Encoding: 7bit Message-ID: <1343422531.13485.32.camel@localhost.localdomain> Mime-Version: 1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - solar.assortedinternet.com X-AntiAbuse: Original Domain - tomcat.apache.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - souther.us X-Source: X-Source-Args: X-Source-Dir: On Thu, 2012-07-26 at 19:54 +0000, Chip McVey wrote: > So I'm looking for a guarantee that no automatic destroys will happen > going forward just because Tomcat decides to do it on its own. If it > is instructed to shutdown/undeploy/unload by some outside system or by > a human user, that's fine, I'm not worried about that. But I don't > want these servlets to be destroyed just because Tomcat decides to do > so for whatever reason. If I were looking for permanence, I would create POJO, bind it to context scope, and then call it from my servlets, passing it whatever it needs to function. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org