Application properties

2014-01-07 Thread Matthias
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

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

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

Re: [ANN] JumpStart Preview: for Tapestry 5.4

2014-01-07 Thread Howard Lewis Ship
Looks great! On Mon, Jan 6, 2014 at 4:44 AM, Lance Java lance.j...@googlemail.comwrote: Haha... I did see some similarities. Parts of tapestry-stitch were inspired by Jumpstart You scratch my back, I'll scratch yours! On 6 Jan 2014 10:00, Geoff Callender

[Might be OT] What is the difference between J2EE CDI and Tapestry's IoC ?

2014-01-07 Thread Muhammad Gelbana
The subject says it all, what is the different between CDI (Context and Dependency Injection) and Tapestry's IoC ? There is a bug\taskhttps://git-wip-us.apache.org/repos/asf?p=tapestry-5.git;a=commit;h=bf2c8a4f09152ef0f10ef788ed17370b540a2670to be implemented in Tapestry 5.4 that implies adding

Re: [Might be OT] What is the difference between J2EE CDI and Tapestry's IoC ?

2014-01-07 Thread Lenny Primak
This is somewhat a sensitive subject: http://apache-tapestry-mailing-list-archives.1045711.n5.nabble.com/Merits-of-Tapestry-IOC-td5721445.html http://apache-tapestry-mailing-list-archives.1045711.n5.nabble.com/First-stab-at-CDI-module-for-tapestry-td4469281.html

Re: [Might be OT] What is the difference between J2EE CDI and Tapestry's IoC ?

2014-01-07 Thread Muhammad Gelbana
Thanks a lot for your time taken to collect these links, I appreciate it. I don't mean to revive a debate, I'll go ahead and read these threads, thanks again :) *-* *Muhammad Gelbana* http://www.linkedin.com/in/mgelbana On Wed, Jan 8, 2014 at 12:33 AM, Lenny Primak

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,