Jess doesn't create any threads of its own (except for an I/O flushing
thread if multi-threaded I/O is set, and some process I/O readers from
the (system) command. ) run() doesn't return until no more rules are
firing. Whatever you're observing, it isn't that you need to do
something special to wait for Jess to stop running.
Now, other events can happen in the engine when it is not running. For
instance, if you've got definstanced Beans with properties being
changed in other Threads, facts will be modified in Jess without any
direct action from your main program.
I think Weihua Zhou wrote:
> hi, there, I got a wired problem with JESS. in my java program, I set
> rete engine to run. but it seems to me that JESS is running with my java
> program paralelly, which means sometimes my java program won't wait jess
> to finish and just go ahead. how can I let my java program wait until
> jess is finished? any hint? thanks a lot. urgent! please reply to my
> email directly.
>
> David
---------------------------------------------------------
Ernest Friedman-Hill
Distributed Systems Research Phone: (925) 294-2154
Sandia National Labs FAX: (925) 294-2234
Org. 8920, MS 9012 [EMAIL PROTECTED]
PO Box 969 http://herzberg.ca.sandia.gov
Livermore, CA 94550
---------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the
list (use your own address!) List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------