Announcement Announcement Module
Collapse
No announcement yet.
Configuring Spring webapp in Tomcat Context scope Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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, 07:54 AM.
Working...
X