我在一个骆驼上下文中有两条路线。
<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}}&oAuthAppSecret={{oAuthAppSecret}}&oAuthAccessToken={{oAuthAccessToken}}" />
<log message="The message contains ${body}" />
</route>
</camelContext>
Run Code Online (Sandbox Code Playgroud)
在第二条路线中,我使用 facebook 组件。我想调用http://localhost:8765/getLikes并从 Facebook 获得所有喜欢的第二条路线。但是第一条路线找不到第二条路线