Mar 17th, 2009, 06:49 AM
Configuring Spring webapp in Tomcat Context scope
Hello, I want to deploy a .war file serveral times and use a different .properties config file outside of the .war file for each deployment. Now I use the PropertyPlaceholderConfigurer and point it to classpath:mywebapp.properties
In Tomcat 6, each deployed webapp has a "Context" scope. Is there a way to have a different .properties file for each Context on the classpath? If not, what is a clean way to add properties from e.g. <Context><Parameter /></Context> values (or web.xml context parameters) into my Spring bean definition file?
Last edited by Jeroen Kransen; Mar 17th, 2009 at 06:54 AM.
Tags for this Thread