...
onCompletion supports the following features:
- scope: global and/or per route (route scope override all global scope)
- multiple global scope
- triggered either always, only if completed with success, or only if failed
onWhen
predicate to only trigger in certain situations
Info | ||
---|---|---|
| ||
The onCompletion runs in a separate thread in parallel with the original route. It is therefore not intended to influence the outcome of the original route. The idea for on completion is to spin off a new thread to eg send logs to a central log database, send an email, send alterts to a monitoring system, store a copy of the result message etc. |
...
Wiki Markup |
---|
{snippet:id=e1|lang=java|url=camel/trunk/camel-core/src/test/java/org/apache/camel/processor/OnCompletionWhenTest.java} |
See Also
- Unit of Work