Apache camel 如何使用apache camel blueprint创建和导出camelProxy

Apache camel 如何使用apache camel blueprint创建和导出camelProxy,apache-camel,blueprint-osgi,aries,Apache Camel,Blueprint Osgi,Aries,我在osgi容器中使用camel blueprint和aries blueprint。我的配置如下 <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>

我在osgi容器中使用camel blueprint和aries blueprint。我的配置如下

<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>

你好${body}

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

我想对端点direct:a使用Camel代理

编辑 骆驼版本2.11
OSGI容器equinox 3.8

我很久以前就找到了答案,但忘了回答。
答案很简单,我只需要将其导出为服务。

您使用的是什么版本的Camel?你用什么容器?是ApacheKaraf吗?我正在使用Camel2.11并使用equinox作为OSGI容器。。。