On Tue, 07 Jan 2014 15:54:52 -0200, Matthias <thegreatme...@gmail.com> wrote:

Hi,

Hi!

I'm looking for the best way to set global application properties like the path to my data directory or the url of my solr server. Currently I set them within the contributeApplicationDefaults() method of my modules (I have a production and development module). But I don't want to set them in Java, because they can change and I have to recompile and redeploy my project.

After a google search I found the WEB-INF/app.properties, but the file is only for the messages catalog (correct me if im wrong).

Most projects I've worked on put this stuff into property files which are read by AppModule.contributeApplicationDefaults() using the Property class.

--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to