Re: Log incoming message with the corresponding response

2015-11-29 Thread Sergey Maslov
Andrey, Christian, thank you. That would help me much except just one thing: I need to log requests and responses to the project MongoDB along with the simple log file. So we have special package dealing with logging to MongoDB (separate job and threads), containing some additional information and

Re: Log incoming message with the corresponding response

2015-11-29 Thread Christian Schneider
Hi Sergey, CXF has a new logging feature since 3.1 now. It provides a message id as well as an exchange id out of the box. It even sends the message id over the wire so you can also correlate a sent and received message. Unfortunately I did not yet update the CXF documentation. I will do thi

RE: Log incoming message with the corresponding response

2015-11-29 Thread Andrei Shakirin
Hi, If I get it correctly you just need to log service request - response pair? Why not use standard CXF logging feature for that (http://cxf.apache.org/docs/debugging-and-logging.html#DebuggingandLogging-LoggingMessages)? In every message CXF writes an id, helping to bind request to corresponded