apache-camel - 如何在骆驼中调用另一条“新”路线
问题描述
我有一条路线 (A) 可以做一些事情,比如调用 REST 服务。
在这条路线中,在调用 REST 服务之前,我需要调用另一个 REST 服务,以评估我的应用程序中的一些数据。该新呼叫位于另一条路线 (B) 中。
我正在寻找调用第二条路线 (B) 的提示,但有一个新的“交换”(我希望 A 和 B 中的交换之间没有链接)。
from(ROUTE_A)
.routeId(ROUTE_A)
.process(someProcessA())
//I need to call the route B here, but without giving in the current exchange content
//Route A must wait until before route B execution is complete
.process(someProcessB())
.to(http://blahblah.com/)
.end()
有谁知道解决方案?
谢谢,
解决方案
也许内容丰富的EIP 会有所帮助
推荐阅读
- swift4.1 - 为什么我们在 appDelegate 中使用 return true 或 false?
- fetch - 从工作箱服务人员正确获取缓存的响应
- python - 使用运算符计算数字列表
- python - 在 python 中,如何设置条件来检查哪些项目当前处于活动状态并且它们的结束日期尚未过去?
- javascript - 在 HH:MM:SS 中显示倒数计时器,而不是在 Javascript 中的 H:M:S
- ms-access - 将数据从文本文件复制到表中的宏/VBA 代码
- python - Networkx - 从文件中读取邻接列表
- java - 几个小时以来一直在努力解决这个问题。我的 XPath 是正确的,但我收到此错误消息
- python - 将 2-d 数组添加到 3-d 数组中,索引不断变化
- php - 如何从某个地方访问我的 DI 容器配置文件?