小编Pet*_*ter的帖子

Apache Camel,从另一条路线调用一条路线

我在一个骆驼上下文中有两条路线。

<camelContext xmlns="http://camel.apache.org/schema/blueprint">
        <propertyPlaceholder location="classpath:facebook.properties"
            id="properties" />
        <route>
            <from uri="jetty:http://0.0.0.0:8765/getLikes" />
            <to uri="facebook" />
        </route>

        <route>
            <from uri="facebook://userLikes?oAuthAppId={{oAuthAppId}}&amp;oAuthAppSecret={{oAuthAppSecret}}&amp;oAuthAccessToken={{oAuthAccessToken}}" />
            <log message="The message contains ${body}" />
        </route>
    </camelContext>
Run Code Online (Sandbox Code Playgroud)

在第二条路线中,我使用 facebook 组件。我想调用http://localhost:8765/getLikes并从 Facebook 获得所有喜欢的第二条路线。但是第一条路线找不到第二条路线

apache-camel jbossfuse

2
推荐指数
1
解决办法
4851
查看次数

标签 统计

apache-camel ×1

jbossfuse ×1