I am trying to use the HttpSessionBindingListener interface to track
sessions which are created or destroyed in jrun. This is useful in keeping
track of logged in users for an app.
As you know, this interface defines two functions, valueBound and
valueUnbound, which are called when an object that implements
HttpSessionBindingListener is added or removed from a session.
It works fine (especially the valueUnbound part) as long as the session is
invalidated or timed out. But, if jrun is stopped or restarted,
valueUnbound is not called anymore. So, any sessions that would still exist
at the time of the restart would die without letting the tracking object
know about it.
Should jrun call valueUnbound when it is stopped? I am not too familiar
with the servlet 2.2 spec - is it up to the app. server providers to decide
what to do in this case? The way it is now, it is only 70-80% useful.
There are cases (restart) which don't allow me to clean up.
Thanks.
Cristian
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists