当前位置: 代码迷 >> WebSphere >> 怎么监测websphere停止了某个应用
  详细解决方案

怎么监测websphere停止了某个应用

热度:3375   发布时间:2013-02-26 00:00:00.0
如何监测websphere停止了某个应用
比如我在websphere上部署了一个应用A,
我想在应用A里写个类,专门监测websphere何时停止和启动了应用A,或者卸载了A,有现成的方法吗?

------解决方案--------------------------------------------------------
在web.xml里注册个servlet,这样可以监听应用的启动和停止