This week's book giveaway is in the Python forum.
We're giving away four copies of Python Continuous Integration and Delivery and have Moritz Lenz on-line!
See this thread for details.
Win a copy of Python Continuous Integration and Delivery this week in the Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Devaka Cooray
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Tim Holloway
  • Claude Moore
  • Stephan van Hulst
Bartenders:
  • Winston Gutkowski
  • Carey Brown
  • Frits Walraven

SessionListener false positives?  RSS feed

 
(instanceof Sidekick)
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have a SessionListener in WebSphere 5.x to clean up some resources on sessionDestroyed(). Testing in WSAD it seems to get false calls. Our resource cleanup runs, but the session is still live afterwards; or at least the browser can still use it without the behavior we get on real time outs: being redirected to log on. Does this make any sense or ring a bell regarding something we may have done wrong? Thanks!!

Caveat: We haven't nailed down the steps to reproduce this. There is a slim chance we are imagining things, but I don't think so.
 
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What version of the servlet spec does that version of Websphere support?
 
Stan James
(instanceof Sidekick)
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not sure ... I'll have to go look. Not the latest fer sure.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not sure if this is related but the spec for sessionListeners changed between 2.3 and 2.4 as to when the sessionDestroyed method gets called.


From:
http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/http/HttpSessionListener.html

public void sessionDestroyed(HttpSessionEvent se)

Notification that a session was invalidated.

Parameters:
se - the notification event



From:
http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/http/HttpSessionListener.html
 
Oh, sure, you could do that. Or you could eat some pie. While reading this tiny ad:
Become a Java guru with IntelliJ IDEA
https://www.jetbrains.com/idea/
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!