开发者

Interceptor for all calls in servicemix

开发者 https://www.devze.com 2023-04-05 09:19 出处:网络
What is the best way to add an interceptor to servic开发者_如何学运维emix that would log all webservice calls (or calls to osgi components would also work)?

What is the best way to add an interceptor to servic开发者_如何学运维emix that would log all webservice calls (or calls to osgi components would also work)?

I know of the NMR interceptors, but these apparently don't work for CXF. And I know about "jaxws:inInterceptors" but these need to be added to each endpoint manually.

I would like to intercept the calls to all endpoints (WS and RS) with a single configuration/interceptor, is this possible in servicemix?


you can just add CXF logging feature like this

<!-- adding the feature to the bus-->
<cxf:bus>
    <cxf:features>
        <cxf:logging/>
    </cxf:features>
</cxf:bus> 
0

精彩评论

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

关注公众号