Hi,

The message ID already saved in message exchange if you used LoggingInInterceptor.

You can get it using code like
(String )PhaseInterceptorChain .getCurrentMessage().getExchange().get(LoggingMessage.ID_KEY);
in your service.

Freeman


On 2012-6-12, at 下午9:13, Tichy wrote:

Hi,

I log incoming SOAP request as described in the CXF manuals, and I have
noticed that there is a message ID.

My client would like to have a unique message ID per request in the logs
(not only the incoming soap request, but all logging statements in the
service).

So my question would be: can I somehow access that ID CXF logs/ generates? Is it even being generated on the server side? I saw mentions of ws- adressing in other posts on this lists, but it sounds as if it uses client side IDs
which would not be what I want.

Not sure yet how to solve the problem - I am guessing some ThreadLocal
variable and a custom Log4J appender or Layout. I guess that is not a CXF problem, but comments are still welcome (CXF problem is how to get the CXF
Id).

Thanks!


Björn

--
View this message in context: 
http://cxf.547215.n5.nabble.com/Logging-Message-IDs-tp5709589.html
Sent from the cxf-user mailing list archive at Nabble.com.

---------------------------------------------
Freeman Fang

FuseSource
Email:[email protected]
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
http://blog.sina.com.cn/u/1473905042
weibo: http://weibo.com/u/1473905042










Reply via email to