On Thursday 07 April 2011 12:09:47 AM bcokee wrote:
> Hi Dan,
> 
>  I tried the interceptor like you said and it seems to work. Just have the
> ff. concerns:
> 
> 1. Is HttpConduit shared by all clients ? Like if I set a timeout like
> below, will it overwrite the timeout setting of other clients accessing
> same endpoint ?
> 
>    HTTPClientPolicy httpPolicy = createHttpPolicy();
>    HTTPConduit conduit = getHTTPConduit(client);
>    conduit.setClient(httpPolicy);
>    conduit.getClient().setReceiveTimeout(receiveTimeoutInMillis);

No.  The conduit is per client proxy.   If you share a single client proxy on 
multi-threads, that will be an issue.  But for a single proxy, that is fine.

> 
> 
> 2. Using the interceptor, if I apply a timeout using
> msg.put(Message.RECEIVE_TIMEOUT, ..)  on one operation, will it overwrite
> the timeout for other operations of the service ? Is this approach thread
> safe?

The msg is per request.   Anything set there doesn't affect anything else.

Dan

 
> I want each operation to have separate timeout values.
> 
> Thanks,
> Berns
> 
> 
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/Setting-Http-conduit-using-spring-configur
> ation-file-tp2644363p4287702.html Sent from the cxf-user mailing list
> archive at Nabble.com.

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

Reply via email to