ok, thanks for the answer. I ended up doing the following. Seems to be
working ok.
HttpComponent http4Component = camelContext.getComponent("http4",
HttpComponent.class);
http4Component.setHttpClientConfigurer(new
HttpClientSocketTimeoutConfigurer());
HttpComponent https4Component = camelContext.getComponent("https4",
HttpComponent.class);
https4Component.setHttpClientConfigurer(new
HttpClientSocketTimeoutConfigurer());
public void configureHttpClient(HttpClient client) {
HttpParams httpParams = client.getParams();
HttpConnectionParams.setConnectionTimeout(httpParams,
TIMEOUT_IN_MILLIS);
HttpConnectionParams.setSoTimeout(httpParams, TIMEOUT_IN_MILLIS);
}
--
View this message in context:
http://camel.465427.n5.nabble.com/How-to-configure-http-client-tp5743784p5743950.html
Sent from the Camel - Users mailing list archive at Nabble.com.