Hi All,

>>Ivo said: i'm trying to re-load a directory filled with .clp files
whenever the state of
>>the directory changed (either, file changed, removed or added).

This is an afterthought to an old post of 5/20/2008:

For what it's worth, I was thinking that what Ivo was trying to do would be
a whole lot easier if he had notification of file system events.
Unfortunately, Java has no such API, but I did find JNotify
http://jnotify.sourceforge.net/ which is pretty slick.  The website says
that it works on both Windows (Windows 2000, XP, Vista) and Linux with
INotify support (Kernel 2.6.14 and above).

It occurred to me that if your rule engine was registered as a listener of
file system events (like file content changes), then you could just have
procedural code stop the rule engine, re-load only the changed rules in the
files, and then re-start the rule engine.  The trick is to know which of the
rules have changed.  I didn't have time to investigate it further, but I
thought that I'd pass this along.  Perhaps other Jess users can use it too.

Cheers,
Jason
-----------------------------------------------------------
Morris Technical Solutions LLC
[EMAIL PROTECTED]
(517) 304-5883

Reply via email to