Hi.
can someone please help me out with this problem.
I have a virtual tomcat server configuration in which i pass some Paramerters as shown below
<Server ...>
... other properties...
<Host name="xxx.yyy.com" debug="0" appBase="active_web" unpackWARs="true" autoDeploy="true">
<Context path="" docBase="active_web" debug="0" loadable="true">
<Parameter name="xxxProperties" value="some file path" override="false"/>
</Context>
</Host>
What i want to do is to get the value of xxxProperties which will be a file name(Outside the application context ) and then read that file using PropertyResourceConfigurer.
<bean id="propertyConfigurer" class="org.springframework.beans.factory.config.Pr opertyPlaceholderConfigurer">
<property name="location" value="file:${xxxProperties}"/></bean>
At the moment xxxProperties cannot be resolved. This xxxProperties should be in the ServeltContext as an init paramter. What am i doing wrong ?
I also tried using ServletContextPropertyPlaceholderConfigurer instead of PropertyPlaceholderConfigurer still no luck.
- thanks in advance.


Reply With Quote
