Howdy,

>public class TestTomcatNotifications implements HttpSessionListener,

Something like SessionListener01/SessionListener02/SessionListener03
from
http://cvs.apache.org/viewcvs/jakarta-tomcat-catalina/tester/src/tester/
org/apache/tester/
would have saved you time ;)

>down tomcat neither sessionWillPassivate nor sessionDestroyed are been
>invoked. In API Doc we can read that:
>"A container that migrates session between VMs or persists sessions is
>required to notify all attributes bound to sessions implementing
>HttpSessionActivationListener".
>What's wrong?

Any attributes bound will be notified in the Attribute listener, not the
activation listener.  You can test that it works ;)  The session
destroyed event isn't happening because tomcat is persisting, not
destroying, your sessions, as they are valid (haven't timed out or been
invalidated).  Set session-timeout to 1 min in your test webapp's
web.xml and observe what happens.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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

Reply via email to