I happen to be creating a web appplication conforming to Servlets spec 2.2 (IPlanet Entrprise Web Server 6.0) Within this application, I have implemented the Decorator pattern to create a SessionDecorator class. This SessionDecorator class implements HttpSession and also wraps an HttpSession object. All HttpSession methods within this SessionDecorator (as of now) simply default to the wrapped HttpSession object.
The basic idea behind the Decorator is to provide additional services (Persistence, fail-over support etc) transparently, later on. Unfortunately, in spec 2.2 there is no support for Session lifecycle events (specifically the HttpSessionListener interface), so there is no way that my Decorator can come to know about an invalidate() that the container has called upon the wrapped HttpSession object. My Q's are * Is there some way the decorator can find out about invalidate() being called upon the wrapped HttpSession ? * Am I doing the whole thing wrong ? regards Pramod Nair ___________________________________________________________________________ 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