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

  • Reloading beans

    Hello, I'm pretty new to spring and it think it's just great! I was wondering if anyone knew how to reload a bean? Or re-initialize a bean from it's definition?

    thanks!
    rajiv

  • #2
    3 ways:

    1. Maybe you just need a ptototype?
    2. Use AppContext.refreshBeanFactory() (or something like that). That'll reload the whole context.
    3. Try looking at "7.11. Using TargetSources" in the ref, if you need something more sophisticated

    Comment


    • #3
      Use applicationContext.refresh()

      Comment

      Working...
      X