0

I am new to apache camel and couldn't understand the difference between Redelivery and Rollback.. Could you please help me understand this ?

Raju Parashar
  • 312
  • 4
  • 17
  • redelivery = something failed, but try again. Rollback = something failed dont try again, but stop routing and fail – Claus Ibsen Dec 19 '18 at 12:05

1 Answers1

0

Redelivery = something failed, but try again. Rollback = something failed dont try again, but stop routing and fail.

Error handling can be a complex area to understand and master with Camel. My book Camel in Action 2nd ed has a full chapter on this subject.

There is also some docs online with some details (although not as elegant written and fully up to date - our website and docs on Apache Camel is currently undergoing a transition to a new modern look and feel): http://camel.apache.org/error-handling-in-camel.html

Claus Ibsen
  • 56,060
  • 7
  • 50
  • 65
  • I got your point. but what does handled(true) work in the context of error-handling ? I mean what if we don't specify handled(true) ? – Raju Parashar Dec 21 '18 at 05:44
  • handled = true means handle the exception by catching it, and then stop routing and (optionally route/process the message alternatively, for example to prepare a response message with some error details etc). – Claus Ibsen Dec 21 '18 at 07:33