I would recommend connection pooling. The database parameters can be specified through the Tomcat admin console or via context.xml deployed with your application. - Isaac
On Mon, Jan 26, 2009 at 8:09 PM, Fitch <[email protected]> wrote: > > Hi, i´m devloping a GWT web application and i´m having problems > deploying it. > My application does interact with a database, so i have got a client > package and a server package. The operations with the database are in > the server package. I would like to specify database parameters (url, > username and pass) in a .properties file. This way, I can change the > url, username or password without compiling again. > > How can I do this? I tried having a "file.properties" file at WEB-INF/ > classes/ and then access it from my server package with this: > > this.getClass().getClassLoader().getResourceAsStream > ("procedimientos.properties"); > > but this does not work, when i change the data at file.properties, the > application continues connecting to the same database. Even if i > delete the file from web-inf/classes at tomcat/webapps folder, it does > work. > > Can anyone help me, please?? > > Thank you very much > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
