This is strange. I did some work few months ago for my application to
manage my sessions using a combination of HttpSessionActivationListener
and HttpSessionListener (not going into the details here as to why I
needed this). When I did that work HttpSessionActivationListener was
working fine and both methods (sessionDidActivate and
sessionWillPassivate) were being called back properly when tomcat was
restarted.

 

Lately I am seeing that sessionDidActivate() does not get called upon
tomcat restart, even though sessionWillPassivate() is called. Also even
though sessionWillPassivate() is called, I don't see the session
persistence file being created (the one that I specified in
conf/context.xml <context><Manager pathname="xxx"> ).

 

I also see a bug 48717
(https://issues.apache.org/bugzilla/show_bug.cgi?id=48717) on this
issue. Not sure what's its status is w.r.t. tomcat release 6.0.x. But
the strange thing is that I am on the same version of Tomcat (6.0.20)
where I did the initial work and everything was working properly. What
could have caused this to break?

 

Looking for suggestions whether upgrading to latest 6.0.x will help or
is it something in my application that's breaking this functionality
(given that it was working before).  How can I debug this issue further?

 

-Ajay

 

 

 

Reply via email to