In my spring / resources.xml configuration file, I define a bean as follows:
<bean id="myService" class="org.springframework.remoting.caucho.HessianProxyFactoryBean">
<property name="serviceUrl" value="http://${remote.host}:8080/MyAgent/remoting/MyService"/>
<property name="serviceInterface" value="services.MyService"/>
</bean>
In my Config.groovy file I have: remote.host = "someipaddress"
Now I want to change this placeholder value at runtime. In a regular spring application, I do this through PropertyPlaceHolderConfigurer, then update the context and it works.
In Grails, how can I update the context?
Hi,
Philip
source
share