|
David wrote: > Not being too strong on the specifics of the Toolbox I would have expected > that in the sleep flow you would have something that would check if the file > modify, file.lastModified() , is different to the previous and if so fire a > FileEvent. As I was printing out that idea to take in to the office, I realized why it wouldn't help: During the "sleep flow," as you put it, I wouldn't be both sleeping and checking file.lastModified() at the same time. Effectively, I'd be polling the file for its timestamp, rather than for the presence of additional records. What I ended up doing instead was to have the same thing that populates the "event table" file (for which VIEWCUS was just a temporary stand-in) also post a message to a *DTAQ, and then have the Java program wait on the *DTAQ, with a one-minute timeout, so that it polls the event table once a minute whether it appears to need it or not, as well as whenever anything comes in on the *DTAQ. -- James H. H. Lampert Professional Dilettante http://www.hb.quik.com/jamesl http://members.hostedscripts.com/antispam.html http://www.thehungersite.com Help America's Passenger Trains. http://www.saveamtrak.org Read My Lips: No More Atrocities!
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.