aspose file tools*
The moose likes Servlets and the fly likes SessionListener false positives? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "SessionListener false positives?" Watch "SessionListener false positives?" New topic
Author

SessionListener false positives?

Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
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.


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

What version of the servlet spec does that version of Websphere support?


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
Not sure ... I'll have to go look. Not the latest fer sure.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SessionListener false positives?