Right now, a threadlocal would work.   

That said, ideally you would use the exchange for storage (for cxf 
interceptors) or the WebServiceContext for the jaxws stuff.  That way, 
if we change things in the future, it wouldn't break.   We keep talking 
about someday allowing the interceptor chain to be paused and then 
resumed on another thread.  We're not there yet, but.....

Dan

On Thursday 07 February 2008, Rob Barrett wrote:
> Is it reasonable to use a ThreadLocal for holding request specific
> metadata? i.e. are there cases where CXF can use more than one thread
> to handle a request or where CXF handles more than one request on the
> same thread?
>
> Or does this just depend on the configuration of the container e.g.
> tomcat/jetty?
>
> If it's not a good thing to do then what is the preferred way to
> attach metadata to a request?
>
> Thanks Rob



-- 
J. Daniel Kulp
Principal Engineer, IONA
[EMAIL PROTECTED]
http://www.dankulp.com/blog

Reply via email to