【问题标题】:How to start a bundle on boot in apache karaf如何在 apache karaf 启动时启动捆绑包
【发布时间】:2012-03-14 18:53:06
【问题描述】:

我想在启动 karaf 时启动 Camel 和 ActiveMQ,我发现 etc/org.apache.karaf.features.cfg 列出了应在启动期间启动的功能。

featuresBoot=config,ssh,management,camel,activemq,camel-jms,activemq-spring,activemq-camel

这对除“activemq-camel”之外的所有设备都适用(很公平,因为它不是一个功能)。 要安装 apache-camel 包,我必须运行以下命令:

karaf@...>osgi:install -s mvn:org.apache.activemq/activemq-camel/5.5.0

它可以工作,但我宁愿让它在启动时运行。 我能否以某种方式在启动时安装 activemq-camel 包而不为其创建自定义功能?

【问题讨论】:

    标签: osgi activemq apache-camel apache-karaf


    【解决方案1】:

    Apache ServiceMix 已经定义了这个特性。要使用它,请将mvn:org.apache.servicemix/apache-servicemix/4.4.1/xml/features 添加到etc/org.apache.karaf.features.cfg 中的featuresRepositories 属性,然后将camel-activemq 添加到featuresBoot 属性。

    干杯, 乔恩

    【讨论】:

      猜你喜欢
      • 2022-11-07
      • 1970-01-01
      • 1970-01-01
      • 2021-08-08
      • 1970-01-01
      • 2014-08-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多