Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 28184 invoked from network); 18 Nov 2004 15:32:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 18 Nov 2004 15:32:45 -0000 Received: (qmail 65447 invoked by uid 500); 18 Nov 2004 15:32:25 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 65420 invoked by uid 500); 18 Nov 2004 15:32:24 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 65406 invoked by uid 99); 18 Nov 2004 15:32:24 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [217.158.103.214] (HELO maingate.mkodo.com) (217.158.103.214) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 18 Nov 2004 07:32:22 -0800 Received: from smtp.uk1.mkodo.com (smtp.uk1.mkodo.com [192.168.11.233]) by maingate.mkodo.com (8.11.2/8.11.2) with ESMTP id iAIFWK212639 for ; Thu, 18 Nov 2004 15:32:20 GMT Received: from [127.0.0.1] (jjwlaptop.uk1.mkodo.com [192.168.11.239]) by smtp.uk1.mkodo.com (8.12.8/8.12.8) with ESMTP id iAIFWG4q001758 for ; Thu, 18 Nov 2004 15:32:21 GMT Message-ID: <419CC131.5020701@mkodo.com> Date: Thu, 18 Nov 2004 15:35:13 +0000 From: Jon Wingfield User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040616 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Sessions on restart References: <9C5166762F311146951505C6790A9CF80229C68C@US-VS1.corp.mpi.com> <00e301c4cd83$6e881b40$0101a8c0@Hornet> In-Reply-To: <00e301c4cd83$6e881b40$0101a8c0@Hornet> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Yep. Read the docs more carefully ;) The activation/passivation methods are called on objects that implement the listener AND are attributes of the session to be activated/passivated. Tomcat works as Yoav described. HTH, Jon Mark O'Driscoll wrote: > Well, as you can see my listener implements this interface but the > activation/ passivation methods are never called :-( I have flagged the > class as a in m web.xml. Is there anything else I have to do? > > TIA > > Mark > > ----- Original Message ----- > From: "Shapira, Yoav" > To: "Tomcat Users List" > Sent: Thursday, November 18, 2004 3:14 PM > Subject: RE: Sessions on restart > > > > Hi, > > >>Now when tomcat restarts, the sessions persist OK but I have no way of >>knowing the list of active sessions. > > > There will be an activation event for each session restored from disk. > If your listener implemented HttpSessionActivationListener, you'd get > this event. By monitoring session creation, activation, passivation, > and destruction, you will be able to maintain the list of active > sessions. > > >>I am sure that in the 4.0.x days, sessionCreated was called on restart > > for >all the persisted sessions. That doesn't seem to be happening with > 5.0.28. > > This behavior was a bug if it indeed existed. > > Yoav Shapira http://www.yoavshapira.com > > > > > This e-mail, including any attachments, is a confidential business > communication, and may contain information that is confidential, proprietary > and/or privileged. This e-mail is intended only for the individual(s) to > whom it is addressed, and may not be saved, copied, printed, disclosed or > used by anyone else. If you are not the(an) intended recipient, please > immediately delete this e-mail from your computer system and notify the > sender. Thank you. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org