The Jess language function "(engine)" returns the Rete object that the Jess code is executing in, so you should be able to use that. If you used a minimal amount of Jess code to store that engine reference someplace, then you could do the reset of your listener registration from Java code.


On May 8, 2009, at 7:21 AM, Henschel, Jörg wrote:

I'm trying to use Jess in a JSR-94 environment, as described in the Jess documentation. Am I right to assume that currently there is no way to attach JessListeners to the underlying Rete object?

The JSR-94 API doesn't specify anything in that regard and short of fiddling with jess.jsr94.RuleServiceProviderImpl itself, I don't see a way to add event listeners.

So - if I want event handling, I can't use the javax.rules API?

Thank you for any insights here,
Jörg Henschel



---------------------------------------------------------
Ernest Friedman-Hill
Informatics & Decision Sciences          Phone: (925) 294-2154
Sandia National Labs
PO Box 969, MS 9012                            [email protected]
Livermore, CA 94550                             http://www.jessrules.com





--------------------------------------------------------------------
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].
--------------------------------------------------------------------

Reply via email to