【发布时间】:2014-08-08 08:33:03
【问题描述】:
在我的 Camel Route 中,当我的 onException 处理程序发生异常时,我需要向 JMS 发送消息。为了加快主路由,我尝试通过Wiretap异步发送消息
我尝试使用这样的东西:
onException().handled(true).logHandled(true)
.wiretap("seda:another_queue").end();
...
from("seda:another_queue?concurrentConsumers=5")
.to("jms:queue_for_my_exception_messages");
是否有必要使用Wiretap,或者我可以像这样只使用SEDA 队列:
onException().handled(true).logHandled(true)
.to("seda:another_queue").end();
...
from("seda:another_queue?concurrentConsumers=5")
.to("jms:queue_for_my_exception_messages");
【问题讨论】: