Announcement Announcement Module
No announcement yet.
Update-able application context Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Update-able application context

    My project uses Spring application context to define all configurable components as singleton beans. Currently, once those components are loaded, their configuration informations can be viewed but not updated (We currently expose some of the properties through JMX). Needless to say, updating the configuration file (manually) requires system restart.

    One of the new requirements of our project is to implement the ability to update some of the configuration settings of the components dynamically through either browser-based UI or JMX and bring them to effect immediately without having to restart the server. One of the issues we're trying to figure out is, how to reflect the new states of the components back to the application context file. In other words, we need a way to update the application context file from the graph of the beans that were originally loaded from the file so that we can persist those configuration changes.

    Is this possible to achieve with the Spring? Any information would be greatly appreciated.

  • #2
    You might want to do a search, saving the applicationContext has been brought up quite a number of times.