Announcement Announcement Module
No announcement yet.
Can ApplicationContext.xml be re-read without server restart Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Can ApplicationContext.xml be re-read without server restart

    I would like to make slight config mods to applicationContext.xml and re-read these changes without a server shutdown. Is there a way to do this in Spring? These changes are very basic config changes - no programmatic changes to the beans themselves, just String properties. I know that I could seperately implement a Properties file, but just curious if I can do it within Spring - not a very large project, would like to keep it in same file.


  • #2
    You can reload the application. With some projects I use a exploded webapplication and only have to touch the web.xml and jboss/tomcat will pick this up en redeploy your application.


    • #3
      What does application context refresh() do? From the Javadoc it seems it fits the bill:

      "Load or refresh the persistent representation of the configuration, which might an XML file, properties file, or relational database schema. "

      - J. Betancourt