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
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.
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
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
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
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
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
[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
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,
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
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
://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
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);
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
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
15 matches
Mail list logo