The usual method:
You establish a TopicPublisher as a global declared in your .drl file.
global TopicPublisher topicPublisher
You must set this from Java code using
TopicPublisher topicPublisher = ...;
statefulKnowledgeSession.setGlobal( "publisher", topicPublisher )
and then you use it in any RHS code.
Of course, a TopicPublisher could also be (field of) some fact,
but this shouldn't be necessary for such a central service.
-W
Hi,
I've got a simple question.
How can I get generated facts out of the memory (for publishing them
using JMS)?
Thanks :)
Tina
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users