Configuration params for a webapp - best practice?



Hi,

I have a web app running in Tomcat and it can be configured with various
parameters.

In particular, one of the parameters is a file path that defines where
various work files, uploaded files and logs are written to.

I have created a config file in this folder for other parameters but
ultimately something needs to define this path.

My first attempt had the path hard-coded but now I realise that's probably
not right, since I have to install the web app on Windows and Unix machines.

So then I checked the 'os.name' system property but that only gave me a Unix
version and a Windows version of the path - still ultimately hard-coded.

Where is the best place to configure this path so it's not hard coded in the
web app and is easy to configure when the app is deployed?

Thanks very much.


--
Regards,
Steve

"...which means he created the heaven and the earth... in the DARK! How good
is that?"

.



Relevant Pages

  • Re: App converted from 1.1 to 3.5 runs at about quarter of the speed
    ... We have a web app that was written in .net 1.1 ... The application is running on 3 Server cluster and the servers are ... If improper architecture, you will have to cull through the code and fix ... This can be site config or machine config. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Configuration params for a webapp - best practice?
    ... since I have to install the web app on Windows and Unix machines. ... So then I checked the 'os.name' system property but that only gave me a Unix ...
    (comp.lang.java.programmer)
  • Re: app.config issue
    ... There is only one application config (in case of web app, ... business logic layer is a DLL, ... namesapce, so there is no need to add that app.config file which you ...
    (microsoft.public.dotnet.general)
  • Re: aspnet_isapi.dll & aspnet_wp.exe
    ... IIS 6.0 corrects this by exposing a single switch for ASP.NET applications. ... The same settings can be duped in Windows 2000, ... but the web app will not execute. ... tag in the config file. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Using SMTP
    ... but we're using the default config from Dell. ... In some cases the web app sends email notifications via smtp. ...
    (microsoft.public.windows.server.sbs)