【问题标题】:how to create and export camelProxy with apache camel blueprint如何使用 apache camel 蓝图创建和导出 camelProxy
【发布时间】:2013-06-13 01:57:59
【问题描述】:

我在 osgi 容器中使用骆驼蓝图和 aries 蓝图。我的配置如下

<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:c="http://camel.apache.org/schema/blueprint">

<c:camelContext>
    <c:proxy id="myProxySender" serviceInterface="com.cmt.gabs.camel.test.MyInterface" serviceUrl="direct:a" />

    <c:route>
        <c:from uri="direct:a" />
        <c:transform>
            <c:simple>Hello ${body}</c:simple>
        </c:transform>
        <c:to uri="log:org.apache.camel.example?level=ERROR" />
    </c:route>
</c:camelContext>

当我启动捆绑包时,它不会给出任何错误,但代理也不是作为服务创建的。如果我做错了什么,请告诉我。

我想为端点 direct:a

使用 Camel 代理

编辑 骆驼版 2.11 OSGI 容器 Equinox 3.8

【问题讨论】:

  • 你使用什么版本的骆驼?你用什么容器?是阿帕奇卡拉夫吗?
  • 我正在使用camel 2.11并使用Equinox作为OSGI容器...

标签: apache-camel blueprint-osgi aries


【解决方案1】:

我早就找到了答案,但忘记回复了。 答案很简单,我只需要将其作为服务导出即可。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-03-20
    • 2013-02-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多