Hi Jean-Baptiste,
Thanks for the reply. Unfortunatly, theses options don't give more info : 

karaf@trun()> feature:uninstall R_FRONTAL_HTTP-feature
karaf@trun()>
karaf@trun()> feature:install -t -v R_FRONTAL_HTTP-feature
Adding features: R_FRONTAL_HTTP-feature/[0.2.0,0.2.0]
karaf@trun()>
> You can disable the auto-refresh (on kar or feature) to avoid this.

Could you please tell me how to do that ? From now, the only way we know to 
deploy things is to drop the kar file in the deploy directory, as seen in the 
Talend docs and trainings. It deploys into data dir then installs both the 
feature and its bundles. 
I don't know how to install a new feature from a kar file if it has never been 
installed before. And the -r option for command-line installs only exists for 
features and not for bundles.
NB : we also tried "noAutoRefreshBundles=true" in etc/org.apache.karaf.kar.cfg 
and after restarting Karaf it did not avoid bundles refresh

Best regardsArnaud

    Le jeudi 19 octobre 2017 à 11:13:34 UTC+2, Arnaud Geslin 
<[email protected]> a écrit :  
 
 Hello

We build kar files with Talend studio (some Camel routes) that are completly 
independent. When deploying thoses files by copy in container/deploy of by 
"bundle:install file://..." in the console, it sometimes refreshes all the 
other bundles already installed and active. ("stopping","resolved" then 
"active" again). This is a bit ennoying on a production system.

I've searched in the ML archive but did not find any discussion about precisely 
the same issue

The log says :

------------------------
Changes to perform:
   Region: root
     Bundles to install:
       mvn:gfc.R_FRONTAL_HTTP/R_FRONTAL_HTTP/0.2
       mvn:org.apache.camel/camel-jetty-common/2.17.3
       mvn:org.apache.camel/camel-jetty9/2.17.3
       mvn:org.codehaus.woodstox/stax2-api/3.1.4
 Installing bundles:
   mvn:gfc.R_FRONTAL_HTTP/R_FRONTAL_HTTP/0.2
   mvn:org.apache.camel/camel-jetty-common/2.17.3
   mvn:org.apache.camel/camel-jetty9/2.17.3
   mvn:org.codehaus.woodstox/stax2-api/3.1.4
 Stopping bundles:
   gfc.R7_PU017B_BP_FROMKHEOPSTOSAP/0.1.0
   gfc.R_BROKER_KHEOPS/0.1.0
    ...
 Refreshing bundles:
     activemq-karaf/5.14.1 (Wired to org.apache.activemq.activemq-osgi/5.14.1 
which is being refreshed)
     gfc.R7_PU017B_BP_FROMKHEOPSTOSAP/0.1.0 (Wired to 
org.apache.activemq.activemq-osgi/5.14.1 which is being refreshed)
     gfc.R_BROKER_BUS/0.1.0 (Wired to org.apache.activemq.activemq-osgi/5.14.1 
which is being refreshed)
     gfc.R_BROKER_KHEOPS/0.1.0 (Wired to 
org.apache.activemq.activemq-osgi/5.14.1 which is being refreshed)
---------------

That's right all thoses bundles use activemq, but this feature is already 
installed and I don't understand why it should be refreshed when installing a 
new bundle, and then all the bundles wired to it.
Same issue for bundles that use Apache cxf. 

I tried this workaround :
[root@kardev01 container]# cat etc/org.apache.karaf.features.cfg
...
featuresBoot=\
    (instance, \
    activemq-client, \
    activemq-camel, \
    activemq, \
    package, \

and also added in startup.properties :
mvn\:joda-time/joda-time/2.9.2 = 50

but it had no effect.

I also tried an other workaround, unzipping the kar file, to remove in the 
feature-xx.xml file the dependencies to activemq (<feature>activemq</feature> 
and <feature>activemq-camel</feature>) then zip again the kar, and deploy it 
again but the bundles are still refreshed.

I guess we don't really need to refresh the activemq or cxf features, how could 
we avoid this ? 

Thank you
Loko
    

Reply via email to