The usual method:<br>You establish a TopicPublisher as a global declared in your .drl file.<br>   global  TopicPublisher topicPublisher<br>You must set this from Java code using<br>   TopicPublisher topicPublisher = ...;<br>
   statefulKnowledgeSession.setGlobal( &quot;publisher&quot;, topicPublisher )<br>and then you use it in any RHS code.<br><br>Of course, a TopicPublisher could also be (field of) some fact,<br>but this shouldn&#39;t be necessary for such a central service.<br>
<br>-W<br><br><br><div class="gmail_quote">On 29 August 2010 19:16, Tina Vießmann <span dir="ltr">&lt;<a href="mailto:tviessmann@stud.hs-bremen.de">tviessmann@stud.hs-bremen.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
  Hi,<br>
<br>
I&#39;ve got a simple question.<br>
<br>
How can I get generated facts out of the memory (for publishing them<br>
using JMS)?<br>
<br>
Thanks :)<br>
Tina<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</blockquote></div><br>