Hi,
I have to create a KBS with a fact-file, which is extended every 10
minutes. I think it's possible to check in a certain intervall if the
facts-file is changing or not (like polling), but is there another
possibility?
How does JESS recognize when facts in a fact-file are changing
JESS simply loads the file and forgets about it.
If you want to monitor a file, you'll have to do that yourself and
then call clear and batch. If you don't want to reload the entire
file, you'll have to maintain state and keep track of the last line
and then only assert the new facts.
why not
On Wed, Mar 11, 2009 at 3:30 PM, Tanja Vicovac
tanja.vico...@tuwien.ac.atwrote:
Hi,
I have to create a KBS with a fact-file, which is extended every 10
minutes. I think it's possible to check in a certain intervall if the
facts-file is changing or not (like polling), but is there another
Hi Tanja,
There is also an API called JNotify that allows one to receive file system
events on Windows and LINUX.
See:
http://nixbit.com/cat/programming/libraries/jnotify/
http://sourceforge.net/projects/jnotify/
See if this is what you need. You can also have a thread periodically
monitor your
Instead of modifying the existing file, why not create a new file?
that way you can just load each new file at the set interval?
the other approach I've used in the past is to sent facts to JESS
using JMS messaging
peter
On Wed, Mar 11, 2009 at 1:00 PM, Jason Morris jason.c.mor...@gmail.com