Announcement Announcement Module
Collapse
No announcement yet.
Refreshing configuration Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Refreshing configuration

    Hi,

    I want to reconfigure my app without restarting it. All parameters are in a properties file.

    How can I achieve this?


    Is changing the properties file and calling AbstractApplicationContext.refresh() the right way?

    Thx.

  • #2
    Originally posted by spgmx View Post
    Is changing the properties file and calling AbstractApplicationContext.refresh() the right way?
    You have to load the config file again, e.g. by creating a new instance of the BeanDefinitionReader - however you are doing it already.

    Comment


    • #3
      Hi,

      thx for the answer. What do you mean with !I'm doing it already"?

      AbstractApplicationContext.refresh() leads to "creating a new instance of the BeanDefinitionReader"?

      Comment

      Working...
      X