You can implement a ContextListener that persists your Vector when the Context is shutdown.
A quite dirty trick would be to store a reference to the Vector in each session and let tomcat do the work for you. > -----Urspr�ngliche Nachricht----- > Von: Mark O'Driscoll [mailto:[EMAIL PROTECTED]] > Gesendet: Mittwoch, 14. August 2002 14:45 > An: Tomcat Users List > Betreff: How to keep track of sessions > > I have a HttpSessionListener that is correctly called on > sessionCreated/sessionDeleted. I keep a reference to each > session in the servletContext as a Vector. > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
