Originariamente inviato da iperuber
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
Ciao, fammi capire bene, tu hai un certo bean (service) caricato dal contesto di spring cui passi come parametro in caricamento la reference ad un altro bean (policy_1) da settare nel suo field nameProp . Quello che vuoi ottenere è a runtime, senza riavviare, cambiare il valore del field nameProp nell'oggetto oppure proprio cambiare fisicamente il file di configurazione di spring?