Results 1 to 2 of 2

Thread: Can an individual bean be reloaded during runtime?

  1. #1
    Join Date
    Aug 2004
    Posts
    7

    Default Can an individual bean be reloaded during runtime?

    Hi,

    As part of the requirements of the project I'm working on they want services hooked up to Spring's BeanFactory be changed during runtime. In other words, they want to change the settings of an individual bean, and restart it.

    I know ConfigurableApplicationContext has a refresh() method. However, I would like to make only the individual changed bean to restart itself without affecting others.

    Is that possible? If so, how, if JMX support is not yet available until 1.2?

    TIA,
    Raymond

  2. #2
    Join Date
    Aug 2004
    Posts
    2,715

    Default

    Have a look at org.springframework.aop.target.HotSwappableTargetS ource. Maybe it could be useful for your purpose.

    Regards,
    Andreas

Similar Threads

  1. Order of Bean definitions matters?
    By cfuser in forum Container
    Replies: 2
    Last Post: Oct 21st, 2005, 10:29 AM
  2. Spring container fails with no exception
    By naor in forum Container
    Replies: 9
    Last Post: Oct 1st, 2005, 03:39 PM
  3. EHCaching Hibernate
    By dencamel in forum Data
    Replies: 3
    Last Post: Sep 6th, 2005, 09:03 PM
  4. could not satisfy dependencies
    By springuser in forum Container
    Replies: 4
    Last Post: Apr 26th, 2005, 01:15 PM
  5. Replies: 1
    Last Post: Apr 25th, 2005, 07:37 PM

Posting Permissions

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