Re: Configuring a GWT application in both hosted mode and Tomcat

2011-05-05 Thread Chris
> 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

Re: Configuring a GWT application in both hosted mode and Tomcat

2011-05-05 Thread Juan Pablo Gardella
The simple way that I recommend use jndi resuorces. Then you must configure each server access to database. In your source code you doesn't need the information to access to database or other resources. Is the standard form. If your architecture is more complex you can define a custom resource that

Re: Configuring a GWT application in both hosted mode and Tomcat

2011-05-05 Thread Alan Chaney
Erel On 5/5/2011 10:03 AM, Erel Segal wrote: 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

Re: Configuring a GWT application in both hosted mode and Tomcat

2011-05-05 Thread Juan Pablo Gardella
The simple way that I recommend use http://tomcat.apache.org/tomcat-6.0-doc/jndi-resources-howto.html. Then you must configure each server access to database. In your source code you doesn't need the information to access to database or other resources. Is the standard form. If your architecture is

Configuring a GWT application in both hosted mode and Tomcat

2011-05-05 Thread Erel Segal
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