Osgi 如何在ApacheKaraf中启动捆绑包

Osgi 如何在ApacheKaraf中启动捆绑包,osgi,activemq,apache-camel,apache-karaf,Osgi,Activemq,Apache Camel,Apache Karaf,我想在启动过程中启动Camel和ActiveMQ当我启动karaf时,我找到的是etc/org.apache.karaf.features.cfg,它列出了启动过程中应该启动的功能 featuresBoot=config,ssh,management,camel,activemq,camel-jms,activemq-spring,activemq-camel 除了“activemq驼峰”(因为它不是一个特性,所以很公平)之外,这对所有人都适用。 要安装apache camel捆绑包,我必须运

我想在启动过程中启动Camel和ActiveMQ当我启动karaf时,我找到的是etc/org.apache.karaf.features.cfg,它列出了启动过程中应该启动的功能

featuresBoot=config,ssh,management,camel,activemq,camel-jms,activemq-spring,activemq-camel
除了“activemq驼峰”(因为它不是一个特性,所以很公平)之外,这对所有人都适用。 要安装apache camel捆绑包,我必须运行以下命令:

karaf@...>osgi:install -s mvn:org.apache.activemq/activemq-camel/5.5.0
它可以工作,但我宁愿在启动时让它运行。
我是否可以在启动时安装activemq驼峰包,而不为其创建自定义功能?

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

干杯, 乔恩