Hi all,
The RmiProxyFactoryBean expects a String property for its serviceUrl. My problem is that I will not know this until another bean has been instantiated.
The bit in bold I know doesn't work, but I'm wondering what should i put in there to reference the String property of my bean as an inner bean?
Thanks
Code:<bean id="remoteCommunicationService" class="org.springframework.remoting.rmi.RmiProxyFactoryBean"> <property name="serviceUrl"> <value>networkService.serviceURL</value> </property> <property name="serviceInterface" value="foo.bar.CommunicationService"/> </bean> <bean id="networkService" class="foo.bar.NetworkService"> </bean>Code:public class NetworkService{ private String serviceURL; public String getServiceURL() { return serviceURL; } public void setServiceURL(String s) { serviceURL = s; } }


Reply With Quote