On Monday 17 January 2011 1:30:49 pm Christian Müller wrote:
> Hello Daniel,
> 
> thank you for the suggestion. It works for us.
> I'm not sure if its a problem, if our interceptor is now statefull. I read
> [1] and [2] but I coudn't find an answer. Should we store the original
> message into a thread local or something similar? Or is it possible to hold
> the reference in the interceptor because CXF create a new instance of the
> interceptor for each service call or thread?

The interceptor itself should definitely not be stateful.   The best place to 
store stuff is onthe Message itself (or the Exchange associated with the 
Message).    The Message is a Map so just store stuff there.

Dan


> 
> [1] http://www.opendocs.net/apache/cxf/2.0/interceptors.html
> [2] http://cxf.apache.org/docs/interceptors.html
> 
> Thank you in advance,
> Christian

-- 
Daniel Kulp
[email protected]
http://dankulp.com/blog

Reply via email to