Back Forum Reply New

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:

lt;bean id=quot;servicequot; class=quot;...quot;gt;  lt;property name=quot;namePropquot; ref=quot;policy_1quot; /gt;
lt;/beangt;

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:

lt;bean id=quot;servicequot; class=quot;...quot;gt;  lt;property name=quot;namePropquot; ref=quot;policy_2quot; /gt;
lt;/beangt;
My idea is  PropertyPlaceholderConfigurer explicited in ref but I don't know if it is a working solution.

Thanks
¥
Back Forum Reply New