camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem Jiang <willem.ji...@gmail.com>
Subject Re: Camel CXF Producers And Timeout Configuration
Date Mon, 07 Jun 2010 06:55:47 GMT
Hi,

Did the overrideRequestRouteBuilder has the below route ?

from("direct:overrideRequest").recipientList(header("overrideAddress"))

There is an unit test of cxf[1][2] which show the Timeout config is working.

[1]https://svn.apache.org/repos/asf/camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfTimeoutTest.java
[2]https://svn.apache.org/repos/asf/camel/trunk/components/camel-cxf/src/test/resources/org/apache/camel/component/cxf/cxfConduitTimeOutContext.xml

Willem

Carlo Camerino wrote:
> Hi,
> 
> I'm trying to configure camel cxf but can't seem to set a timeout on it.
> 
> My route looks something like this
> 
> overrideAddress =cxf://http://localhost:8088/override/override?serviceClass="
> + SERVICE_CLASS
> 
> here's what the route contains..
> 
> from("direct:overrideRequest").recipientList(header("overrideAddress")) {
> 
> }
> 
> 
> here's my spring xml declaration.
> 
> <?xml version = "1.0"?>
> <beans xmlns="http://www.springframework.org/schema/beans"
>     xmlns:amq="http://activemq.apache.org/schema/core"
>     xmlns:camel="http://camel.apache.org/schema/spring"
>     xmlns:cxf = "http://camel.apache.org/schema/cxf"
>     xmlns:jaxws="http://cxf.apache.org/jaxws"
>     xmlns:soap="http://cxf.apache.org/bindings/soap"
>     xmlns:http-conf="http://cxf.apache.org/transports/http/configuration"
>     xmlns:sec="http://cxf.apache.org/configuration/security"
>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>     xsi:schemaLocation="http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
>     http://activemq.apache.org/schema/core
> http://activemq.apache.org/schema/core/activemq-core-5.3.2.xsd
>     http://camel.apache.org/schema/spring
> http://camel.apache.org/schema/spring/camel-spring.xsd
>     http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd
>     http://cxf.apache.org/bindings/soap
> http://cxf.apache.org/schemas/configuration/soap.xsd
>     http://cxf.apache.org/transports/http/configuration
> http://cxf.apache.org/schemas/configuration/http-conf.xsd
>     http://cxf.apache.org/configuration/security
> http://cxf.apache.org/schemas/configuration/security.xsd
>      http://camel.apache.org/schema/cxf
> http://camel.apache.org/schema/cxf/camel-cxf.xsd">
> 
>     <import resource="classpath:META-INF/cxf/cxf.xml" />
>     <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
>     <import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
> 
>     <camel:camelContext>
>         <camel:package>com.ccti.luminous.override.routes</camel:package>
>         <camel:template id="producerTemplate"/>
>         <camel:routeBuilder ref="overrideRequestRouteBuilder"/>
>     </camel:camelContext>
>     <http-conf:conduit name="*.http-conduit">
>         <http-conf:client ReceiveTimeout="125000"/>
>     </http-conf:conduit>
> 
> 
> I declared an http-conf conduit declaration but it does not seem to be
> following it.
> 
> It just defaults to 30 seconds.
> is there anyway that i can recdonfigure this behavior?
> 
> 
> thanks
> carlo
> 


Mime
View raw message