Archived

This forum has been archived. Please start a new discussion on GitHub.

how to 'reload' properties when the program is running?

hi,
how to reload properties when the program is running? the program won't get the updated properties unless it is restarted. It is annoying to restart for each time the config file is changed.

thanks,
kemp

Comments

  • Properties are read by the Ice run only once on start-up or, in some cases, are read once when first needed (lazy initialization). Thereafter, property values are not looked at again. So, you cannot change properties on the fly and expect your program to react to them.

    Basically, properties are not meant to be used for dynamic information that can change at run time. Instead, they are meant to be used for configuration information that does not change while a program is running.

    Cheers,

    Michi.