You have all the options available to you that any other Java app provides:
1) put name/value pairs in a CONFIGURATION table in the database. 2) put name/value pairs in a property file in a location of your choosing. Java has built-in features to read property files 3) set system properties or environment variables at the OS level or in your app's startup script, and read them using standard Java APIs #1 is my favorite (lots of flexibility; you can even provide a web interface to edit some of them if desired). On Tue, Jan 7, 2014 at 12:54 PM, Matthias <thegreatme...@gmail.com> wrote: > 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). > > Any suggestions? > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org