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

  • Reload Application Context

    Hi all,

    Firstly, I am new to Spring Framework. So, my question may be straightforward but I just can't make it works. And I need you guys help.

    Currently, I have a standalone spring application which have a MyClass.reload() method exposed to JMX.

    When I invoke MyClass.reload() method via JMX, I try to call context.refresh() in order to reload the source XML file once and re-created the beans.

    However, after I called context.refresh(), it destroys the beans accordingly and also exit the application.

    Could anyone advise the proper way to reload a standalone application?

    Thank you very much.
Working...
X