In my project I use read-cache, so before every read, first of all, check File.lastModified() and then, if it differs from previous value (that I saved during previous cache update), I reload cache, otherwise read performed only from cache.
But when one application updates file using RAF (for example adds new record), File.lastModified() in other application still returns old value (while File.length() returns new length) and no cache update performed
(
In case of adding new record I can solve this problem by checking modification time and length together. But in case of modifying....
((
I already tried "rws" and "rwd" parameters of RAF constructor, but it has no effect
I can see only two ways:
1. Do not anything, because my DataFileAccessObject is Singleton and in case of network mode it will be only one instance of it. And in local mode it's very strange to have two applications with one shared db file.
2. To set last modification time by hands, by calling method File.setLastModified().
What do you thing about that?
[ October 13, 2004: Message edited by: Evgeniy Sedyshev ]