Currently the DeadLetterChannel sets the orignal caused exception on the exchange after it has been failure handled. We should support somekind of option to enable/disable this feature. We could support:
- option on the endpoint to set this for all exchanges
- support a special header key that end-users can insert per exchange to be more dynamic
- maybe methods on Exchange to set this more easily
- maybe some refinements in isFailureHandled() to cater for this
And we should consider use a better keyname in the DLC where it stores the original exception.
We might need to push this for Camel 2.0 but I think it is a feature that end-users would need sooner.
Any thoughts, please write here?