Re: Flexible way of defining application variables in text format?

2005-09-29 Thread Leon Rosenberg
On 9/29/05, matador [EMAIL PROTECTED] wrote: Leon Rosenberg [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: now how exactly writing a thread which polls the db is less messy, than writing a thread that polls a file? regards leon no need for threads with db. change the val in

Re: Flexible way of defining application variables in text format?

2005-09-29 Thread matador
Leon Rosenberg [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: First: you can load your property files on each request as well. really, using what? im curious -- struts and regular properties files out of the box dont support that behaviour, so you would have to 'roll your own' i think.

RE: Re: Flexible way of defining application variables in text format?

2005-09-29 Thread Caldarale, Charles R
From: news [mailto:[EMAIL PROTECTED] On Behalf Of matador Subject: Re: Flexible way of defining application variables in text format? First: you can load your property files on each request as well. really, using what? Try the java.util.Properties.load() method. You can check

Re: Flexible way of defining application variables in text format?

2005-09-28 Thread Leon Rosenberg
database. using props files you have to bounce the app to get changes to take effect unless you write your own properties loader that runs as a thread, or checks file timestamps, etc. imo, its all too messy, db based config is far superior now how exactly writing a thread which polls the

Re: Flexible way of defining application variables in text format?

2005-09-28 Thread matador
Leon Rosenberg [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: now how exactly writing a thread which polls the db is less messy, than writing a thread that polls a file? regards leon no need for threads with db. change the val in the db then the next time the page loads, the new

Flexible way of defining application variables in text format?

2005-09-27 Thread Seak, Teng-Fong
My webapp needs some application string variables for configuration. For the moment, I hard-code them as class static properties and compiled. But I'd like to know if there's any method to define such variables in a text file, something like the global.asa in ASP where we could simply

[OT] RE: Flexible way of defining application variables in text format?

2005-09-27 Thread Allistair Crossley
with $applicationScope.myprops['var1'] There are other ways but this is my recommended way. Allistair. -Original Message- From: Seak, Teng-Fong [mailto:[EMAIL PROTECTED] Sent: 27 September 2005 09:37 To: Tomcat Users List Subject: Flexible way of defining application variables in text format? My

RE: Flexible way of defining application variables in text format?

2005-09-27 Thread Allistair Crossley
[EMAIL PROTECTED] To : Tomcat Users List tomcat-user@jakarta.apache.org Cc : Date : Tue, 27 Sep 2005 10:36:30 +0200 Subject : Flexible way of defining application variables in text format? My webapp needs some application string variables

Re: Flexible way of defining application variables in text format?

2005-09-27 Thread NoKideen
On Tuesday 27 September 2005 15:36, Seak, Teng-Fong wrote: My webapp needs some application string variables for configuration. For the moment, I hard-code them as class static properties and compiled. But I'd like to know if there's any method to define such variables in a text file,

Re: Flexible way of defining application variables in text format?

2005-09-27 Thread Jilles van Gurp
NoKideen wrote: On Tuesday 27 September 2005 15:36, Seak, Teng-Fong wrote: My webapp needs some application string variables for configuration. For the moment, I hard-code them as class static properties and compiled. But I'd like to know if there's any method to define such variables in

RE: Flexible way of defining application variables in text format?

2005-09-27 Thread Caldarale, Charles R
From: NoKideen [mailto:[EMAIL PROTECTED] Subject: Re: Flexible way of defining application variables in text format? Try this API Class file Is there some reason you went to all this trouble rather than using java.util.Properties? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL

RE: Flexible way of defining application variables in text format?

2005-09-27 Thread George Sexton
://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: Seak, Teng-Fong [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 27, 2005 2:37 AM To: Tomcat Users List Subject: Flexible way of defining application variables in text format? My webapp needs some

Re: Flexible way of defining application variables in text format?

2005-09-27 Thread NoKideen
On Tuesday 27 September 2005 16:48, Jilles van Gurp wrote: NoKideen wrote: this is example to to read - import lib.ConfLineSeparator; ... ... ConfLineSeparator c = new ConfLineSeparator(/whereis/thefile/file.conf);

RE: Flexible way of defining application variables in text format?

2005-09-27 Thread Caldarale, Charles R
From: NoKideen [mailto:[EMAIL PROTECTED] Subject: Re: Flexible way of defining application variables in text format? is there any example, I'd still confuse how to read dot properties file I think may API was to odds :-D, yeah that was trouble but there is one thing I like

Re: Flexible way of defining application variables in text format?

2005-09-27 Thread matador
Seak, Teng-Fong [EMAIL PROTECTED] wrote in news:4339048E.30608 @yahoo.com: My webapp needs some application string variables for configuration. For the moment, I hard-code them as class static properties and compiled. But I'd like to know if there's any method to define such