Add a context-parameter to your web.xml pointing to a resource
(a file or whatever) that contains your configuration. Read that
configuration during startup of your webapp.
-------- Original-Nachricht --------
Betreff: Re: Best practice? configuration of a web application
Von: Ingo Siebert <[EMAIL PROTECTED]>
An: Tomcat Users List <users@tomcat.apache.org>
Datum: 28.05.2008 15:51
Thank you for the answers.
I see one additional problem. If I deploy two different versions of
the web app on the same tomcat, it is not possible configurate them
separately.
That's important for me, because I have only a limited number of
servers and I have to deploy more than one version at the same time.
Any additional ideas?
Ingo
Mikolaj Rydzewski schrieb:
David kerber wrote:
Mikolaj Rydzewski wrote:
David kerber wrote:
-DmyApp.configFileName="e:\TomcatClients\myApp\myApp.properties"
Then my webapp can read the filename using a System.getProperty()
call.
System properties are at JVM level, so it is quite possible to have
two webapps which will use common property names.
Not if I'm careful when writing the apps and naming their properties
files. Definitely could be a consideration, though, depending on
the environment they're running in.
I just know the pain when it comes to host third party apps which use
such configuration strategy.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Jost Richstein
SoftDeCC Software GmbH
Email: [EMAIL PROTECTED]
Tel.: +49 89 89 06 78 47
Fax.: +49 89 89 06 78 33
SoftDeCC Software GmbH; Gesellschaft mit beschränkter Haftung; Sitz der
Gesellschaft: München; Registergericht: München, HRB 123667; Geschäftsführer:
Ralf Malis, Georg Nüssel, Jost Richstein, Gerd Wilts
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]