You have brought me to the place where I was:
If you see the very first post of this thread, I have used file: only.
but if the user wants to change the file path,
then he has to modify 'catalina.bat' as well as 'applicationContext.xml'
the entry made in catalina.bat is used to read property values for my application,
and the entry made in applicationContext.xml is used by PropertyPlaceholderConfigurer for reading cronExpression
set JAVA_OPTS=%JAVA_OPTS% -DMyProperties.fileName=D:\MyProperty.properties
but both of them are reading MyProperty.properties to get the property value.
<bean id="placeholderConfig" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
I want PropertyPlaceholderConfigurer to read the properties from a file whose path is set in catalina.bat file.