Results 1 to 3 of 3

Thread: Refreshing configuration

  1. #1
    Join Date
    Mar 2007
    Posts
    561

    Default 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. #2
    Join Date
    Jun 2005
    Posts
    4,232

    Default

    Quote 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.

  3. #3
    Join Date
    Mar 2007
    Posts
    561

    Default

    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"?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •