Announcement Announcement Module
Collapse
No announcement yet.
resolve bean at runtime Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • resolve bean at runtime

    Hy,
    I use Spring 2.5 and I have a web-app with some context file. I have a bean like this:

    <bean id="service" class="...">
    <property name="nameProp" ref="policy_1" />
    </bean>

    I'd like to change the policy_1 in policy_2 in my GUI by web-app and store the value (DB or properties), not restart the web-app and I want the web-app to work in this configuration:

    <bean id="service" class="...">
    <property name="nameProp" ref="policy_2" />
    </bean>



    My idea is PropertyPlaceholderConfigurer explicited in ref but I don't know if it is a working solution.

    Thanks
Working...
X