任何方式覆盖默认的骆驼FatalFallbackErrorHandler? [英] Any way to override the default Camel FatalFallbackErrorHandler?
问题描述
有什么办法来覆盖默认的Apache的骆驼<一个href=\"http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/processor/FatalFallbackErrorHandler.html\"相对=nofollow> FatalFallbackErrorHandler ?
Is there any way to override the default Apache Camel FatalFallbackErrorHandler?
由于类文档状态,它的目的是为设置ErrorHandler作为一个安全的备用时其他错误处理,如OnExceptionDefinition处理。事实上,这正是我想要来处理,除了代替FatalFallbackErrorHandler的简单的日志的情况下,我想消息传递到ActiveMQ的终点。
As the class documentation states, it's purpose is as "an ErrorHandler used as a safe fallback when processing by other error handlers such as the OnExceptionDefinition." Indeed, this is exactly the scenario I'd like to handle, except instead of the FatalFallbackErrorHandler's simple logging, I'd like to pass the message to an activemq endpoint.
推荐答案
没有没有。它得到如果嵌套错误处理程序触发器很复杂,这也可能导致循环的循环等。
No there is not. It gets very complicated if nested error handlers triggers, which can also lead to circular looping etc.
这篇关于任何方式覆盖默认的骆驼FatalFallbackErrorHandler?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!