I have a GWT web application that I run on multiple Tomcat servers. It
happens to need some configuration, such as database username and
password, initialization data, etc. I would like to put all this info
in a configuration file, but, I where should I put the file so that my
application will find it?

* I cannot put the file in a hard-coded absolute path on my computer,
because I run the application on several different servers, some are
Linux and some are Windows, so they don't have the same folders.
* I cannot put the file in a relative path, because this depends on
the "current directory", and the current directory (as I found out)
depends on where exactly I start Tomcat from.
* I tried to use an environment variable to tell me where the file is
located, but, I found out that the environment on Linux depends on who
starts the Tomcat server - if it is started at initialization, it's
the environment of the "root" user, but if I restart it manually, it
uses my personal environment (Windows doesn't have this problem).

I am sure I am not the first one that needs to configure a GWT
application. How do the experts do this?


-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to