Results 1 to 1 of 1

Thread: Configuring Spring webapp in Tomcat Context scope

  1. #1
    Join Date
    Jan 2006
    Location
    Rotterdam, Netherlands
    Posts
    17

    Default 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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •