我有一条路线(A)做一些像调用REST服务的东西。
在此路由中,在调用REST服务之前,我需要调用另一个REST服务,以便在我的应用程序中对某些数据进行增值。那个新的电话是在另一条路线(B)。
我正在寻找呼叫第二条路线(B)的提示,但使用新的" Exchange" (我希望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()
有人知道解决方案吗?
谢谢,