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 made in 
the Servlet are gone.

For Example: I use a debuging Object of my own, which I instantiate in the Servlet 
init method. In sessionCreated the Instance is gone and the Reference is null.

My Guess is that I am dealing with 2 different Object instaces.
Are the Listener Objects specified in the web.xml instantiated for themselves?

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?

Thanks for your time :-)

Ralf



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to