cri*_*nge 5 asynchronous apache-camel
在我的 Camel Route 中,当异常遇到我的处理程序时,我需要向 JMS 发送消息onException。为了加快主路由的速度,我尝试通过窃听异步发送消息
我尝试使用这样的东西:
onException().handled(true).logHandled(true)
.wiretap("seda:another_queue").end();
...
from("seda:another_queue?concurrentConsumers=5")
.to("jms:queue_for_my_exception_messages");
Run Code Online (Sandbox Code Playgroud)
是否有必要使用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");
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
5740 次 |
| 最近记录: |