>>>>> Steinar Bang <s...@dod.no>: > Is there a code example somewhere of an SCR component that saves a value > to a cfg file in karaf?
Pax exam has a class that looks like it has the appropriate functionality: https://github.com/ops4j/org.ops4j.pax.exam/blob/v4.x/containers/pax-exam-container-karaf/src/main/java/org/ops4j/pax/exam/karaf/container/internal/KarafCfgFile.java#L26 But: 1. It is in pax exam (which is a test framework for those that don't know) 2. It is in a package with "internal" which means it's a hint it's probably not intended for use by others So... the search continues...