Via spring configuration, yes. You can use a wildcard like:
<http-conf:conduit name="*.http-conduit">
<http-conf:client ConnectionTimeout="60000"/>
</http-conf:conduit>
or for just a specific host:
<http-conf:conduit name="http://some.host.com/.*">
<http-conf:client ConnectionTimeout="60000"/>
</http-conf:conduit>
Dan
On Tue October 13 2009 12:14:40 pm Alexander Burkov wrote:
> Hi all,
>
> as i known default conectionTimeout of HttpClient is 30000 ms
> (http://cwiki.apache.org/CXF20DOC/client-http-transport-including-ssl-suppo
> rt.html). i can modify connection timeout of single httpclient in such way:
>
> Client client = ClientProxy.getClient(my_proxy);
> HTTPConduit conduit = (HTTPConduit)client.getConduit();
> HTTPClientPolicy policy = conduit.getClient();
> policy.setConnectionTimeout(MY_TIMEOUT);
>
>
> but is there any way, to override value of default conectionTimeout? To
> force CXF to create HttpClients with connectionTimout == MY_TIMEOUT.
>
--
Daniel Kulp
[email protected]
http://www.dankulp.com/blog