Hi Paul,

Just use ConfigiurationAsmin service, the loading and persistency is
managed by Karaf on top of ConfigAdmin.

Regards
JB

On Tue, Jan 17, 2023 at 11:25 PM Paul Fraser <[email protected]> wrote:
>
> Hi,
>
> The karaf docs state "Apache Karaf stores and loads all configuration in 
> files located in the etc folder."
>
> To access and/or set properties in code do the files have to be loaded as 
> properties files in code and then saved back after changes or does karaf have 
> a simple method to manipulate properties?
>
> Karaf docs and googling for a way to set "log level" in code provides a very 
> confusing array of suggestions.
>
> Karaf test code seems to use executeCommand to do it using the console 
> commands.
>
> Paul Fraser

Reply via email to