Re: Application properties

2014-01-08 Thread Thiago H de Paula Figueiredo
On Tue, 07 Jan 2014 15:54:52 -0200, Matthias 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

Re: Application properties

2014-01-07 Thread Rural Hunter
You can also put it in web.xml and access it in your pages/services via injected symbol. 于 2014/1/8 3:15, Matthias 写道: I thought that there is a tapestry way of doing this. But if not, I try to use the database. I actually never thought of that, so thanks for the tip. On 07.01.2014 19:24, Bo

Re: Application properties

2014-01-07 Thread Matthias
I thought that there is a tapestry way of doing this. But if not, I try to use the database. I actually never thought of that, so thanks for the tip. On 07.01.2014 19:24, Bob Harner wrote: You have all the options available to you that any other Java app provides: 1) put name/value pairs in a

Re: Application properties

2014-01-07 Thread Bob Harner
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 e