Hi All,

I am trying to create a heartbeat endpoint and would like to set a timeout
of 5 secs on it. I have tried this - 

                <route id="heartbeat-Sender">
                        <from uri="jetty:{{heartbeat_url}}" />
                        <to
uri="http://testurl/ws/?bridgeEndpoint=true&amp;httpClient.connectionManagerTimeout=5000";
/>
                </route>
                
and
                
                <route id="heartbeat-Sender">
                        <from uri="jetty:{{heartbeat_url}}" />
                        <to
uri="http://testurl/ws/?bridgeEndpoint=true&amp;httpClient.soTimeout=5000";
/>
                </route>

but none of them work.I created a sample java class and verified that
http.connection.timeout works - 


                HttpClient client = new HttpClient();
                GetMethod method = new GetMethod(url);  
                client.getParams().setParameter("http.connection.timeout", 
5000);

but I think camel uses  HttpClientParams which doesn't have
http.connection.timeout. Is there any other way to do it ?

Thanks in advance for your help.



--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-Http-Timeout-tp5760355.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to