Howdy, Implement a ServletContextListener. Get whatever attribute you need from the ServletContext in the listener's contextDestroyed() method. Don't forget to register your listener in web.xml.
Yoav Shapira Millennium ChemInformatics >-----Original Message----- >From: awc [mailto:[EMAIL PROTECTED] >Sent: Friday, April 04, 2003 11:35 AM >To: 'Tomcat Users List' >Subject: Listener ?? > >Hi All, > >I have poll stored in the application scope. >It updates the poll count on copy stored on the app scope. >I want to save the poll to the DB whenever.. > >1. just before reloading of the application scope attribute "poll". > I can handle within application logic. > >2. whenever context destroy or reload. (well, I will go with context >destroy, since that has to happen first) > can I get handle of objects on the application scope once context >destroy is called? how?? > > > >I guess I will have to some kind of Listener. Anyone had a problem like >this before?? > >I use struts 1.1. with tomcat 4.1.24. > >Thank you in advance for any replies. > >.anil > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] 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]
