如何在contextInitialized方法中关闭所有cxf Web服务?

时间:2016-02-19 07:21:55

标签: cxf shutdown

我有一个在Websphere Application Server 8.5上运行的动态Web应用程序。如果我在contextInitialized方法中得到异常,我想关闭所有cxf Web服务,所以当请求到来时,我希望我的系统给出http 404或连接超时错误。

我不想使用“system.exit(0)”。我试过“BusFactory.getDefaultBus()。shutdown(true)”但是没有用。我的cxf版本是2.7.15。还有其他解决方案吗?

0 个答案:

没有答案