Create a thread in your cache manager that polls for changes in the
timestamp of the properties file, say, every 5000 ms and reloads it when
a new one is detected.

Of course a clustered environment will complicate things a little bit
but that's a another story :o)

-Yves-

-----Original Message-----
From: Nicklas Karlsson [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 15, 2003 5:10 PM
To: [EMAIL PROTECTED]
Subject: Reloading of application resources


Hello,

        We have a singleton factory that watches/caches/delivers 
up-to-date ResourceBundles of property files based on the timestamp of
the 
watched file. What would be the natural way of refreshing (and
triggering 
a refresh) of a watched ApplicationResources.properties file so that
e.g. 
a change in a language label would immediately be visible?

---
Nicklas "Nik" Karlsson, Murkiogatan 3 B 29 20740 Åbo, 040 9000 724
[EMAIL PROTECTED] ::: http://www.abo.fi/~nickarls ::: [EMAIL PROTECTED]

"If a man speaks in the forest and there is no woman around to hear him
-
 Is he still wrong?"


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to