3

我想在启动 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 包而不为其创建自定义功能?

4

1 回答 1

8

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

干杯,乔恩

于 2012-02-24T12:14:40.280 回答