camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From StevenD <>
Subject Re: Howto use delay message brokerage in a Camel Route using AMQ_SCHEDULED_DELAY
Date Mon, 02 Jan 2012 12:06:06 GMT
Thanks, this was really helpful. I noticed however that the delay only worked
for the first retry, all subsequent retries would be handled immediately. I
solved this by resetting the scheduledJobId back to null just before sending
it back to the queue. My exception handler now looks like:

        .setHeader("AMQ_SCHEDULED_DELAY", constant("4000"))
        .setHeader("scheduledJobId", constant(null))

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message