We are using Camel 2.14, in a spring application, and are utilizing the Camel CXF-RS component (http://camel.apache.org/cxfrs.html) to produce RESTful requests on a 3rd party service.
When their server is off-line and Camel cannot get a connection, it does not time out for 30 seconds. We'd like to be able to tweak this timeout value, but are struggling to see how we can do this. Could anyone advise?
We can see that Camel itself uses values got from HTTPClientPolicy object, which has a setConnectionTimeOut on it.. but how do we get this object?
Can we get the HTTPClientPolicy object programmatically? or must we refer to it in the Camel URI passed to template.send() eg:
template.send("cxfrs://" + url + "/match/" + appId + "/" + reqId?httpClientAPI=true&http.connection.timeout=5000