I am trying to implement a alerting system in my web app which
mails me when the tomcat is shutting down. I can do it by parsing the server logs.
But i want the app to mail me.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
ServletContextListener.contextDestroyed. It is called when the Tomcat is shutting down or when the application is undeployed.
Here is an example:
http://www.java-tips.org/java-ee-tips/java-servlet/how-to-work-with-servletcontextlistener.html