The discard channel is an important feature of the error management concern.
However, it could be extended with some other common features of the entreprise integration world; like having the ability to retry a defined number of times with a delay and if the error keeps occurring after all the retries, then either:
- dropping the message,
- redirecting it to a discard channel (feature already existing),
- or throwing the exception back to the caller.
Does Spring Integration have currently have such a feature I haven't noticed? Is it in the box? Or doesn't it make sense?
I would like to open a JIRA on the subject but I wanted some other opinions on the subject before I do.