Hi,
I'm using WebServiceTemplate with CommonsHttpMessageSender to access a remote web service.
By default, commons HttpClient's timeout is set to infinite, which I'd like to shorten just a little bit. Unfortunately, the following seems to have no effect at all (copied from HttpClient's docs):
Integer timeoutMs = new Integer(5 * 1000);
messageSender.getHttpClient().getParams().setParam eter("http.socket.timeout", timeoutMs);
messageSender.getHttpClient().getParams().setParam eter("http.connection.timeout", timeoutMs);
Am I missing something?
Thanks,
Dan


Reply With Quote