【问题标题】:Trying to make apache camel to work in apache karaf试图让 apache camel 在 apache karaf 中工作
【发布时间】:2013-07-19 15:47:00
【问题描述】:

我通过运行“mvn compile”和“建议使用 mvn camel:run" 并且效果很好。现在我想在 apache karaf 中运行相同的示例。我应该通过简单的步骤做什么?

【问题讨论】:

  • 是什么阻止你使用它?

标签: maven apache-camel apache-karaf


【解决方案1】:

我已经更新了即将发布的 Apache Camel 2.12 版本中的示例说明,其中包含如何在 Karaf / ServiceMix 中安装的说明,如下所示。这也适用于 2.11.0:

Apache Karaf / ServiceMix

你需要先编译这个例子: mvn 编译

要在 Karaf 中安装 Apache Camel,请输入 shell(我们使用 2.12.0 版):

  • 特点:选择url骆驼2.12.0
  • 特点:安装骆驼

首先您需要在 Karaf/ServiceMix 中安装以下功能:

  • 特点:安装camel-sql

然后你需要安装 JDBC 连接池和 Derby 数据库:

  • osgi:install -s mvn:commons-pool/commons-pool/1.6
  • osgi:install -s mvn:commons-dbcp/commons-dbcp/1.4
  • osgi:install -s mvn:org.apache.derby/derby/10.10.1.1

然后就可以安装 Camel 示例了:

  • osgi:install -s mvn:org.apache.camel/camel-example-sql/2.12.0

你可以通过跟踪日志看到应用程序正在运行

  • 日志:尾

【讨论】:

    【解决方案2】:

    在 Karaf 中查看 Camel 的一般安装/配置指南:http://camel.apache.org/karaf.html

    否则,camel-example-sql 会构建一个 OSGI 包,并且可以使用以下命令进行安装:

    osgi:install -s mvn:org.apache.camel/camel-example-sql/2.11.0

    【讨论】:

      猜你喜欢
      • 2015-12-05
      • 1970-01-01
      • 2018-12-01
      • 1970-01-01
      • 1970-01-01
      • 2016-06-26
      • 1970-01-01
      • 2011-04-24
      • 1970-01-01
      相关资源
      最近更新 更多