On Wed, Dec 30, 2009 at 2:09 PM, rdomingo <[email protected]> wrote:
>
> Hello,
>
> I'm trying to find out how I can trigger redelivery of http message. So when
> a message is available in jms queue it should be send over http to my http
> service. But when it is not running currently an error response is returned.
> But I would like camel to retry my http service for some time, before
> sending the error response.
>
> I have two routes. A http request is received and placed on jms queue:
>        <route>
>            <from uri="jetty:http://0.0.0.0:8201/clipboard/upload"; />
>            <to
> uri="jms:queue:uploads?disableReplyTo=true&amp;requestTimeout=60000" />
>        </route>
>
> From jms queue de message is retrieved and forwarded to my http service.
> When my http service is not available, I would like camel to retry for some
> time, before sending the error response back to client.
>        <route>
>            <from uri="jms:queue:uploads" />
>            <to uri="http://0.0.0.0:9102?bridgeEndpoint=true"/>
>        </route>
>
> I tried adding:
>
>                        <onException useOriginalMessage="true">
>                            <redeliveryPolicy redeliveryDelay="5"
> maximumRedeliveries="100" disableRedelivery="false"
>                                retryAttemptedLogLevel="DEBUG" />
>                        </onException>
>
> But nothing changed and the http request didn't get resubmitted.
>

Where did you add it exactly?

And try using the tracer which should help. onException on reacts if
the Exchange has an Exception set.
http://camel.apache.org/tracer

> --
> View this message in context: 
> http://old.nabble.com/http-vs-Redelivery-tp26967292p26967292.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Reply via email to