开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜