0

向 servicemix 添加一个拦截器以记录所有 Web 服务调用(或对 osgi 组件的调用也可以工作)的最佳方法是什么?

我知道 NMR 拦截器,但这些显然不适用于 CXF。而且我知道“jaxws:inInterceptors”,但这些需要手动添加到每个端点。

我想用一个配置/拦截器拦截对所有端点(WS 和 RS)的调用,这在 servicemix 中可行吗?

4

1 回答 1

1

您可以像这样添加CXF 日志记录功能

<!-- adding the feature to the bus-->
<cxf:bus>
    <cxf:features>
        <cxf:logging/>
    </cxf:features>
</cxf:bus> 
于 2011-09-21T17:38:12.033 回答