Hi Sriraman, 

sorry to say but the features can't be "auto"-updated. 

A feature.xml is more like a repository and is kind of static, therefore you would need to register a new version of the feature.xml again
with a feature:repo-add 

What can be done, though is to make sure you connect Karaf to an OBR (Karaf Cave for example). 
Now when you install or update a certain bundle it automatically can pull in new requirements, updated external bundles etc. 

Usually you want to have a stable enviroment for your application and not a continous "re-deployment" unless you are talking of a CI/CD server. 
In that case it usually is best to trigger the bundle update from the outside. 
Either from a "shell-script" with bundle:update or via JMX. 
JMX can be "proxied" through to a REST call via Jolokia. 

regards, Achim 

2015-08-27 12:42 GMT+02:00 sreeraaman <sreeraaman@gmail.com>:
hi JB,

Thanks for the quick update. Just to elaborate,

Our application is packaged as a set of features .

For third party dependencies, there is a separate feature.
For utility bundles, there is a separate feature.
For the application, there is a separate feature.

A change in any of these features should trigger an auto update.

bundle:watch would be painful to do for all the bundles inside the above
three features. Also, if a new bundle gets added to the above feature, then
again, we will have to track it by entering the bundle:watch command from
the karaf console.

We want to avoid the end users from logging in via the karaf console and do

Hope this clarifies.

best regards

View this message in context: http://karaf.922171.n3.nabble.com/Karaf-Feature-autoupdate-tp4042069p4042092.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer & Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>

Software Architect / Project Manager / Scrum Master