Osgi 卸载功能时在Karaf控制台中删除Camel命令
我使用的是Apache ServiceMix 6.1.0,包括:Osgi 卸载功能时在Karaf控制台中删除Camel命令,osgi,apache-karaf,apache-servicemix,Osgi,Apache Karaf,Apache Servicemix,我使用的是Apache ServiceMix 6.1.0,包括: 卡拉夫3.0.5 骆驼2.16.1 我面临的问题是,当我从ServiceMix卸载个人功能时,Karaf控制台中的Camel命令(例如,路由列表)也会被删除 步骤: 将feature.xml放入ServiceMix的/deploy中 功能文件: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <features xmlns="http://k
- 卡拉夫3.0.5
- 骆驼2.16.1
路由列表
)也会被删除
步骤:
- 将
放入ServiceMix的feature.xml
中/deploy
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<features xmlns="http://karaf.apache.org/xmlns/features/v1.2.1" name="my.feature">
<feature name="my.feature" version="0.0.1-SNAPSHOT" description="my.feature">
<bundle>mvn:org.apache.ws.commons.axiom/axiom-api/1.2.15</bundle>
<bundle>mvn:org.apache.geronimo.specs/geronimo-activation_1.1_spec/1.1</bundle>
<bundle>mvn:commons-logging/commons-logging/1.2</bundle>
<bundle>mvn:jaxen/jaxen/1.1.6</bundle>
<bundle>mvn:org.apache.geronimo.specs/geronimo-stax-api_1.0_spec/1.0.1</bundle>
<bundle>mvn:org.apache.james/apache-mime4j-core/0.7.2</bundle>
<bundle>wrap:mvn:org.apache.ws.commons.axiom/axiom-impl/1.2.15</bundle>
<bundle>mvn:org.codehaus.woodstox/woodstox-core-asl/4.2.0</bundle>
<bundle>mvn:org.codehaus.woodstox/stax2-api/3.1.1</bundle>
<bundle>mvn:com.google.guava/guava/18.0</bundle>
<bundle>mvn:commons-io/commons-io/2.3</bundle>
<bundle>wrap:mvn:xerces/xercesImpl/2.11.0</bundle>
<bundle>wrap:mvn:xml-apis/xml-apis/1.4.01</bundle>
<bundle>wrap:mvn:xml-resolver/xml-resolver/1.2</bundle>
<bundle>mvn:org.slf4j/slf4j-api/1.7.12</bundle>
<bundle>mvn:org.slf4j/slf4j-log4j12/1.7.7</bundle>
</feature>
</features>
你知道为什么这些骆驼捆会被移除吗
2016-03-04 10:11:54,164 | INFO | l for user karaf | FeaturesServiceImpl | 20 - org.apache.karaf.features.core - 3.0.5 | Installing feature my.feature 0.0.1-SNAPSHOT
2016-03-04 10:11:54,165 | WARN | l for user karaf | AetherBasedResolver | 3 - org.ops4j.pax.logging.pax-logging-api - 1.8.4 | interval1: null, interval2: daily
2016-03-04 10:11:54,165 | WARN | l for user karaf | AetherBasedResolver | 3 - org.ops4j.pax.logging.pax-logging-api - 1.8.4 | interval1: null, interval2: daily
2016-03-04 10:11:54,165 | WARN | l for user karaf | AetherBasedResolver | 3 - org.ops4j.pax.logging.pax-logging-api - 1.8.4 | interval1: daily, interval2: daily
2016-03-04 10:11:54,165 | WARN | l for user karaf | AetherBasedResolver | 3 - org.ops4j.pax.logging.pax-logging-api - 1.8.4 | interval1: daily, interval2: daily
2016-03-04 10:11:54,165 | WARN | l for user karaf | AetherBasedResolver | 3 - org.ops4j.pax.logging.pax-logging-api - 1.8.4 | interval1: daily, interval2: daily
2016-03-04 10:11:54,165 | WARN | l for user karaf | AetherBasedResolver | 3 - org.ops4j.pax.logging.pax-logging-api - 1.8.4 | interval1: daily, interval2: daily
...
2016-03-04 10:11:54,794 | INFO | l for user karaf | FeaturesServiceImpl | 20 - org.apache.karaf.features.core - 3.0.5 | Found installed feature camel-core-condition-shell_0_0_0 2.16.1
2016-03-04 10:15:28,584 | INFO | mix-6.1.0/deploy | fileinstall | 7 - org.apache.felix.fileinstall - 3.5.0 | Uninstalling bundle 272 (feature.xml)
2016-03-04 10:15:56,846 | INFO | lixDispatchQueue | FeaturesServiceImpl | 20 - org.apache.karaf.features.core - 3.0.5 | Uninstalling feature my.feature 0.0.1-SNAPSHOT
2016-03-04 10:15:56,849 | INFO | lixDispatchQueue | FeaturesServiceImpl | 20 - org.apache.karaf.features.core - 3.0.5 | Uninstalling feature camel-core-condition-shell_0_0_0 2.16.1
2016-03-04 10:15:56,875 | INFO | lixDispatchQueue | BlueprintExtender | 15 - org.apache.aries.blueprint.core - 1.4.4 | Destroying BlueprintContainer for bundle org.apache.camel.karaf.camel-karaf-commands/2.16.1