如何打电话给另一个" new"骆驼的路线

时间:2018-05-28 08:31:38

标签: apache-camel

我有一条路线(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()

有人知道解决方案吗?

谢谢,

1 个答案:

答案 0 :(得分:0)

也许content-enricher EIP可以提供帮助