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 A0DA071C0 for ; Tue, 13 Dec 2011 15:09:30 +0000 (UTC) Received: (qmail 16977 invoked by uid 500); 13 Dec 2011 15:09:27 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 16774 invoked by uid 500); 13 Dec 2011 15:09:27 -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 16765 invoked by uid 99); 13 Dec 2011 15:09:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Dec 2011 15:09:26 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [216.82.249.131] (HELO mail28.messagelabs.com) (216.82.249.131) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Dec 2011 15:09:17 +0000 X-Env-Sender: Chuck.Caldarale@unisys.com X-Msg-Ref: server-8.tower-28.messagelabs.com!1323788934!3327160!2 X-Originating-IP: [192.61.61.104] X-StarScan-Version: 6.4.3; banners=-,-,- X-VirusChecked: Checked Received: (qmail 28254 invoked from network); 13 Dec 2011 15:08:56 -0000 Received: from unknown (HELO USEA-NAEDGE1.unisys.com) (192.61.61.104) by server-8.tower-28.messagelabs.com with RC4-SHA encrypted SMTP; 13 Dec 2011 15:08:56 -0000 Received: from usea-nahubcas1.na.uis.unisys.com (129.224.76.114) by USEA-NAEDGE1.unisys.com (192.61.61.104) with Microsoft SMTP Server (TLS) id 8.3.83.0; Tue, 13 Dec 2011 09:08:53 -0600 Received: from USEA-EXCH8.na.uis.unisys.com ([129.224.76.41]) by usea-nahubcas1.na.uis.unisys.com ([129.224.76.114]) with mapi; Tue, 13 Dec 2011 09:08:54 -0600 From: "Caldarale, Charles R" To: Tomcat Users List Date: Tue, 13 Dec 2011 09:08:53 -0600 Subject: RE: Deployment over a running webapp does not call session detroyed? Thread-Topic: Deployment over a running webapp does not call session detroyed? Thread-Index: Acy5gpV+jmxV4vxEQ7qyfMNVrv0argAJM4yw Message-ID: <99C8B2929B39C24493377AC7A121E21FB00C152604@USEA-EXCH8.na.uis.unisys.com> References: <13964858.17.1323712007215.JavaMail.sonicle@xstream> <99C8B2929B39C24493377AC7A121E21FB00C151AEE@USEA-EXCH8.na.uis.unisys.com> <10679349.35.1323771930330.JavaMail.sonicle@xstream> In-Reply-To: <10679349.35.1323771930330.JavaMail.sonicle@xstream> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 > From: Gabriele Bulfon [mailto:gbulfon@sonicle.com]=20 > Subject: RE: Deployment over a running webapp does not call session detro= yed? > what is the point to mantain http sessions valid when all the=20 > other stuff have been destroyed and reloaded? Sounds like your webapp doesn't reinitialize itself properly, but is simply= assuming the existence of objects based on session existence - an invalid = assumption. Again, you should be using context listeners for that, not ses= sion ones. > If there is any design I should follow to recreate my new object > structure on the mantained sessions, I would try to do it. Yes - a ServletContextListener (or perhaps a HttpSessionActivationListener)= . If you simply want to prevent session persistence, configure your to not do so: http://tomcat.apache.org/tomcat-7.0-doc/config/manager.html#Persistence_Acr= oss_Restarts - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MA= TERIAL and is thus for use only by the intended recipient. If you received = this in error, please contact the sender and delete the e-mail and its atta= chments from all computers. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org