Hi I have an Spring/BlazeDS application running on a WebSphere server. In my applicationcontext.xml file, I point to applicationcontext.properties file which contain environment specific infomormation such as database connection and urls, username and password and other webservices url. These information is different for different environment such as staging and production. Now I want to keep my applicationcontext.properties file in a separate location from my EAR file. How can i read this file from the applicationcontext.xml file so that I dont need to modify the path manually when deploying the app in different environment.
Any help will be highly appreciated. Thanks.Code:<bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> <property name="location"><value>file:///c:/test/application.properties</value></property> </bean>


Reply With Quote