I don't think you are doing anything wrong,
you just opened a new "use-case" ;)
Basically it's not possible to do this and would need a delete of the
configuration in case the feature is undeployed.
I don't think this is possible right now.
Please open a new Feature request for this.

regards, Achim



2014-04-09 15:51 GMT+02:00 siwatson <[email protected]>:

> Thanks for the quick response. I just tried deploying the following feature
> as feature-test.xml in the /deploy dir of Karaf 3.0.0:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <features name="test-features">
>         <feature name="config-test" version="1.0.0">
>                 <config name="my.new.config">
>                         my.key = my.value
>                 </config>
>         </feature>
> </features>
>
> I then install it: feature:install config-test
>
> And I see the following config created: config:list
> "(service.pid=my.new.config)"
>
> Pid:            my.new.config
> BundleLocation: null
> Properties:
>    service.pid = my.new.config
>    my.key = my.value
>    org.apache.karaf.features.configKey = my.new.config
>
> But I don't see any matching file created in /etc.
>
> When I uninstall the feature with "feature:uninstall config-test" I still
> see the config data appearing in config:list.
>
> Moreover, if I uninstall the feature, modify the deploy/feature_test.xml
> to:
>
> <feature name="config-test" version="1.0.1">
>                 <config name="my.new.config">
>                         my.key = my.value2
>                 </config>
>         </feature>
>
> and then install the new feature version. I still see the old config data
> in
> config:list.
>
> What am I doing wrong?
>
>
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/Can-config-values-be-updated-when-installing-a-new-feature-version-tp4032653p4032655.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>



-- 

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/>

Software Architect / Project Manager / Scrum Master

Reply via email to