camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yari Marchetti <>
Subject Problem with Http component and redeliveryPolicy
Date Sat, 20 Mar 2010 13:13:36 GMT
Hi everyone,
i configured Camel with a route like:

    <from uri="activemq:test.queue"/>

        <redeliveryPolicy maximumRedeliveries="10" 
                                  useExponentialBackOff="true" />    
    <setHeader headerName="CamelHttpMethod">
    <to uri="http://localhost:81" />

but i found 2 problems:

1) the exponential backoff and delay seems to not be working correctly 
With the above configuration i see 10 retries done in a timespan of 10ms or
so. am i doing something wrong?

2) i need to set the query string for the http component but i can't find how.
Reading the documentation i can find some examples using DSL, but i need
to do it with Spring XML. is it possible? and would it be difficult to transform every
message header to a query string parameter?

Reading the documentation and the ML i was not able to find a solution. Maybe 
here someone does know the answers.

View raw message