Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@apache.org Received: (qmail 15924 invoked from network); 12 Jun 2003 09:38:02 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 12 Jun 2003 09:38:02 -0000 Received: (qmail 11370 invoked by uid 97); 12 Jun 2003 09:40:31 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-dev@nagoya.betaversion.org Received: (qmail 11363 invoked from network); 12 Jun 2003 09:40:31 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 12 Jun 2003 09:40:31 -0000 Received: (qmail 15095 invoked by uid 500); 12 Jun 2003 09:37:52 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 15079 invoked from network); 12 Jun 2003 09:37:51 -0000 Received: from nb1.wwtech.pl (62.121.106.73) by daedalus.apache.org with SMTP; 12 Jun 2003 09:37:51 -0000 Received: from nb1 ([127.0.0.1]) by nb1.wwtech.pl ([127.0.0.1]) with SMTP (MDaemon.PRO.v6.7.9.R) for ; Thu, 12 Jun 2003 11:37:49 +0200 From: "deacon Marcus" To: "'Tomcat Developers List'" Subject: RE: Sessions - bug in Tomcat 4.1.24 Date: Thu, 12 Jun 2003 11:37:45 +0200 Organization: Quinotaur.org Message-ID: <000001c330c6$47c07940$496a793e@nb1> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4024 In-Reply-To: <017201c33077$eae20bb0$ec66a8c0@bbarkerxp> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal X-MDRemoteIP: 127.0.0.1 X-Return-Path: deacon_marcus@wwtech.pl X-MDaemon-Deliver-To: tomcat-dev@jakarta.apache.org X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hello, > -----Original Message----- > From: Bill Barker [mailto:wbarker@wilshire.com] > Sent: Thursday, June 12, 2003 2:17 AM > To: Tomcat Developers List > Subject: Re: Sessions - bug in Tomcat 4.1.24 > > > > ----- Original Message ----- > From: "deacon Marcus" > To: > Sent: Wednesday, June 11, 2003 4:13 PM > Subject: Sessions - bug in Tomcat 4.1.24 > > > > Hello, > > It seems in Tomcat 4.1.24 HttpSession is already invalid > when passed > > to HttpSessionListener.sessionDestroyed(), which just does not make > > sense. API Docs say: "public void sessionDestroyed(HttpSessionEvent > > se) Notification that a session is about to be invalidated.", in my > > opinion "about to be" means that the Session should be > valid when this > > method is called until it returns. > > In my copy of the 2.3 Servlet Spec, section 15.1.14.1 says: > "Notification that a session was invalidated." > I read that as saying that Tomcat's behavior is corrent. In http://java.sun.com/j2ee/sdk_1.3/techdocs/api/ : sessionDestroyed(HttpSessionEvent se) Notification that a session was invalidated. In http://java.sun.com/j2ee/1.4/docs/api/ sessionDestroyed(HttpSessionEvent se) Notification that a session is about to be invalidated. I'd say it is correct, according to flawed specification :/ - all other types of listeners are notified after the object in question has become active, and before it has become dead. Otherwise the whole notification thing is just useless. Right now, I must have access to Session's attributes just before it's destruction, and the _only_ method that works at sessionDestroyed is getId. What I'm supposed to do, according do the specs? Bind a HashMap to ServletContext with Session's Id as the key so I have some way to get Session's "pseudo-attributes" past its death? Sounds crazy, but that's the sanest thing possible now without modifying Tomcat's code in "my" copies :/ , and that's exactly what I'd like to avoid - there's always some smartass who tries to upgrade modified versions no matter how many times told not to do so and then all hell brakes loose. But - Tomcat 5.0 seems to follow EE 1.4 ( = Servlets 2.4) no matter what Servlets version, 2.3 or 2.4, current WebApp expects? [...] Greetings, deacon Marcus --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org