It depends what you are trying to do. If you mainly want auditing of messages to and from your application then the easiest way is to use the CXF message logging.

See:
http://liquid-reality.de/display/liquid/2015/06/08/Enterprise+ready+request+logging+with+CXF+3.1.0+and+elastic+search

Together with Apache Karaf Decanter you get a nice solution with no coding required. Elastic Search should also allow to do some perfomance analytics as you can correlate request and response messages.
The logging is implemented using the interceptors you found.

Christian

On 21.10.2015 00:49, asookazian2 wrote:
Apparently these are the recommended approaches with CXF/JAX-RS:

http://cxf.apache.org/docs/interceptors.html

https://dzone.com/articles/common-cxf-request-interceptor



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Equivalent-to-Spring-AOP-or-EJB3-interceptor-in-Karaf-tp4043161p4043162.html
Sent from the Karaf - User mailing list archive at Nabble.com.


--
Christian Schneider
http://www.liquid-reality.de

Open Source Architect
http://www.talend.com

Reply via email to