Hi,

PhaseInterceptorChain.getCurrentMessage() is static method, so you can just use it directly in your serviceImpl class.

Freeman
On 2012-6-13, at 下午8:24, Tichy wrote:

Hi,

thanks! But where do I get to the PhaseInterceptorChain? Since it is all done with Spring configurations and cxf/jaxw tags, I am never really exposed
to the internals of CXF?

Thanks!


Björn


Freeman-2 wrote

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




--
View this message in context: 
http://cxf.547215.n5.nabble.com/Logging-Message-IDs-tp5709589p5709661.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