Hi!
I would like to know how Listener Objects are instantiated.
And here's my reason :-)
My Class extends HttpServlet and I tried to deal with SessionEvents in the same Class.
So I implemented HttpSessionListener.
But when the sessionCreated/sessionDestroyed methods get the Event any changes
On Tuesday 11 June 2002 12:41, you wrote:
If so, i could split the Class and encapsulate the session stuff I need to
do in another Object. But could you suggest a method to communicate between
my servlet and my sessionListener?
Couldn't you communicate through the ServletContext? As for
I have just recently merged in the issue...
My results (not necessarily perfect :) are:
- all listener objects are to be declared in web.xml;
- it seems they are instantiated automatically along with the web app;
- it may be a good idea to implement a listener as a special class,
independent