It's not a secret anymore!
The moose likes Websphere and the fly likes HttpSessionListener Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "HttpSessionListener" Watch "HttpSessionListener" New topic


Antonio Giovanni
Ranch Hand

Joined: Jun 27, 2005
Posts: 85
Hi all,...

I am copying and pasting from a previously discussed thread:

It may depend upon which servlet container and version you are using. Under the Servlet 2.3 specification, the definition of the sessionDestroyed method was:

Notification that a session was invalidated.

under Servlet 2.4:

Notification that a session is about to be invalidated.

So it is perfectly plausible that a 2.3 engine would blow away the session prior to calling sessionDestroyed, while a 2.4 engine will not.

My question:

I am presently using Websphere App server 5.0 with Servlet 2.3 specs, BUT it actually behaves like Servlet 2.4 specs,.. i have access to session data in sessionDestroyed method - its like - Notification that a session is about to be invalidated.

So, now my question is did websphere handle Servlet 2.3 specs in a different way ?? OR it is like some kind of a TYPO in Servlet 2.3 API documentation which they corrected in Servlet 2.4 API documentation.

[ August 09, 2006: Message edited by: Antonio Giovanni ]
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63866

Not a typo. And since this is Websphere-specific, I've moved this off to the Websphere forum.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: HttpSessionListener
It's not a secret anymore!