camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Kulp <dk...@apache.org>
Subject Re: Setting timeout for http-conf:client doesn't seem to work
Date Fri, 24 Feb 2012 21:53:21 GMT
On Friday, February 24, 2012 1:45:23 PM JoeR wrote:
> In my case I was attempting something very simple:
> 
>   <camelContext xmlns="http://camel.apache.org/schema/spring">
>     <endpoint id="callExternalWS"
> uri="http://localhost:8080/ws-example/ws-example"/>
>     <route>
>       <from uri="cxf:bean:source-WS?dataFormat=MESSAGE"/>
>       <to ref="callExternalWS"/>
>     </route>
>   </camelContext>
> 
> 
> Should this work ?


You are basically using the http component and not CXF by using an http URI 
for the "to".    Thus, you would need to check the docs for that component on 
how to configure any timeout:

http://camel.apache.org/http.html


Likely just add: 
?httpClient.soTimeout=5000

to the end of the URI there.




-- 
Daniel Kulp
dkulp@apache.org - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com

Mime
View raw message