>Is there a way of adding an HttpSessionBindingListener explicitly on >a
>session? The only way that it looks like I can add a listener is via adding
>it to the values of the session with "putValue" function. What if I want to
>have an object that manages all of the sessions? I do not want to expose
>this object to all sessions by adding it to their values but I still want
>that object to be notified when a sesion is invalidated. This would be a
>simple matter of adding
>"addHttpSessionBindingListener" and removeHttpSessionBindingListener" to
>the session.


Hi Tyler --

You are trying to duplicate the functionality of the inbuilt Session  API
implementation of the webserver / servler engine. If you trying your own
session management, you will have to create your registry of sessions, add
session objects, register the session objects and use callbacks to notify
the events. Not to mention you will have to keep track of the access
times/timers too.

I didnt quite get your "... do not want to expose this object to all
sessions ..." part.

Shashank


_______________________________________________________________
Get Free Email and Do More On The Web. Visit http://www.msn.com

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to