开发者

how to know the server(tomcat6) is shutting Down in a JSF 1.2 app

开发者 https://www.devze.com 2023-04-11 15:20 出处:网络
I am trying to impl开发者_如何学Goement 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.

I am trying to impl开发者_如何学Goement 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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号