You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by helenlok <he...@gmail.com> on 2016/10/14 04:03:02 UTC
Timeout for http-conf:client take no effect
Hi, I'm trying to edit the default timeout for my web service to wait for a
response where it is set with a Thread.sleep for 5000 ms.
I set the timeout to be 1000 ms using http-conf:client and it suppose to be
timeout in 1000 ms seconds instead but nothing occurs.
Can someone enlighten me as to what I am doing wrong?
I had to edit out some of the names of my config file, but everything is
listed below.
Thanks a lot.
(Config file below)
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:camel="http://camel.apache.org/schema/spring"
xmlns:cxf="http://camel.apache.org/schema/cxf"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:http-conf="http://cxf.apache.org/transports/http/configuration"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd
http://camel.apache.org/schema/spring
http://camel.apache.org/schema/spring/camel-spring.xsd
http://camel.apache.org/schema/cxf
http://camel.apache.org/schema/cxf/camel-cxf.xsd
http://cxf.apache.org/transports/http/configuration
http://cxf.apache.org/schemas/configuration/http-conf.xsd">
<http-conf:conduit name="*.http-conduit">
<http-conf:client ReceiveTimeout="1000" ConnectionTimeout="1000"/>
</http-conf:conduit>
<camelContext xmlns="http://camel.apache.org/schema/spring">
<endpoint
uri="cxf:http://someservice?dataFormat=PAYLOAD&wsdlURL=http://someservice?wsdl&"
id="endpointa" />
<endpoint
uri="cxf:http://someservice1?dataFormat=PAYLOAD&wsdlURL=http://someservice1?wsdl&"
id="endpointb" />
<route customId="true" id="route1">
<from uri="direct:route1" />
<to ref="endpointa" />
</route>
<route customId="true" id="route2">
<from uri="direct:route2"/>
<to ref="endpointb"/>
</route>
</camelContext>
</beans>
--
View this message in context: http://camel.465427.n5.nabble.com/Timeout-for-http-conf-client-take-no-effect-tp5788752.html
Sent from the Camel - Users mailing list archive at Nabble.com.