1 Reply Latest reply on Apr 12, 2005 10:13 AM by errant01

    URGENT Defining different SystemProperties per WebApplicatio

    gdein

      Hi,

      I am facing a problem with defining different system properties for 2 different instances of the same web application.

      In my deploy directory I have two extracted war files and the application expects a system property (accessed with System.getProperty()) to be set that holds a directory path and this must be different for the 2 applications.

      With tomcat I'm doing it like this:

      <Context path="/QA" .....>
       <Parameter name="streetstation.config.dir" value="U:\eRefFE\.." override="true"/>
      </Context>
      <Context path="/SR" .....>
       <Parameter name="streetstation.config.dir" value="V:\eRefFE\.." override="true"/>
      </Context>


      How can this be achieved with JBOSS? I tried with the properties-service.xml but I have not clue how to use different values for different applications.

      any help is greatly appreciated
      thanks,

      Guido


        • 1. Re: URGENT Defining different SystemProperties per WebApplic
          errant01

          The name of your exploded war folder (minus the .war) should define your context name. For two instances to exist on the same app server, I'm pretty sure the contexts must be different, and this would provide you with a different path... Then again, I might be misunderstanding your question.