Hi,

I haven't tried it by myself but I think the following should do the trick:

Define your own dedicated WebServiceTemplate inside your spring
Configuration which makes use of commons HttpClient [1] which
on it's turn provides the possibility to specify a timeout (see [2] & [3])
and then reference that WebServiceTemplate
using the # notation [4] when you do invoke. And using the onException()
Clause you could react when timeout happens:

onException(java.net.SocketTimeoutException)...

[1]
http://static.springsource.org/spring-ws/site/reference/html/client.html#client-transports
[2]
http://hc.apache.org/httpclient-3.x/apidocs/org/apache/commons/httpclient/params/HttpConnectionParams.html#setSoTimeout%28int%29
[3]
http://hc.apache.org/httpclient-3.x/apidocs/org/apache/commons/httpclient/HttpConnection.html
[4] http://camel.apache.org/spring-web-services.html

Babak

--
View this message in context: 
http://camel.465427.n5.nabble.com/How-to-implement-requestTimeout-in-the-spring-ws-component-tp5469281p5469610.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to