Hi,
I have the same problem (In Spring 2.0.4), but your link is brokken.
I use a webApplication like this :
Code:
private IFrontalService frontalService = null;
protected WebApplicationContext wac = null;
/* (non-Javadoc)
* @see org.apache.struts.action.Action#setServlet(org.apache.struts.action.ActionServlet)
*/
public void setServlet(ActionServlet actionServlet) {
super.setServlet(actionServlet);
if (actionServlet != null) {
ServletContext servletContext = actionServlet.getServletContext();
this.wac = WebApplicationContextUtils
.getWebApplicationContext(servletContext);
this.frontalService = (IFrontalService) wac.getBean("frontalService");
}
}
and a spring configuration :
Code:
<bean id="propertyPlaceholderConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>classpath:frontal.properties</value>
</list>
</property>
<property name="ignoreUnresolvablePlaceholders"><value>true</value></property>
</bean>
<bean id="frontalService"
class="com.mypack.app.frontal.service.FrontalService">
<property name="wrapper">
<ref bean="wrapperTarget" />
</property>
<property name="urlBpm"><value>${url.wsdl.bpm}</value></property>
</bean>
My property file
Code:
url.wsdl.bpm = http://localhost:8080/APP-BPM/services/ExecutionManager?wsdl
In the "setServlet" method, when i get the bean "frontalService", the value of "urlBpm" is "${url.wsdl.bpm}".
Spring doesn't get the real value in my property file.
Is there a solution ?
Thanks