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&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.
--
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.