如何在JbossFuse服务器上部署骆驼应用程序?

时间:2019-06-07 14:49:14

标签: java apache-camel apache-karaf jbossfuse

我正在尝试将骆驼应用程序部署到jbossfuse服务器。它部署了,但是骆驼不起作用。

我有一个简单的Apache骆驼应用程序,它创建了“收件箱”文件夹,并且在您将一些文件添加到此文件夹后,它将被复制到“发件箱”中。当我运行带有mavens camel插件的应用程序时,它可以正常运行“ mvn camel:run”。 但是,如果我直接通过redhatfuse部署捆绑软件,将无法正常工作。 我的部署步骤:

run fuse.bat;
install mvn:${path to local maven repository}
BundleID: 233
start 233

我可以在“列表”命令中看到我的捆绑包开始了,但是骆驼不起作用。 可能是什么问题? 我的applicationContext.xml位于resources / META-INF / spring下

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:camel="http://camel.apache.org/schema/spring"
       xmlns:osgi="http://www.springframework.org/schema/osgi" xmlns:cxf="http://camel.apache.org/schema/cxf"
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/osgi http://www.springframework.org/schema/osgi/spring-osgi.xsd http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd http://camel.apache.org/schema/cxf http://camel.apache.org/schema/cxf/camel-cxf-2.8.3.xsd">

    <camelContext id="camelId" xmlns="http://camel.apache.org/schema/spring">
        <camel:route>
            <camel:from uri="file:C:/inbox" />
            <camel:to uri="file:C:/outbox" />
        </camel:route>
    </camelContext>

</beans>

0 个答案:

没有答案
相关问题