<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
dynamic rules - will you be adding new rules to your rulebase? If so
that rulebase needs to know know which working memories to update.<br>
<br>
Mark<br>
Shai Bentin wrote:
<blockquote cite="mid:20070618090345.f3b00a3f@normanserver.bentin.org"
 type="cite">
  <meta http-equiv="Content-Type" content="text/html;">
  <style>BODY{font:10pt Tahoma, Verdana, sans-serif;}</style>
  <div>Can anyone explain to me why I would want to hold a reference to
my working memory in the ruleBase?</div>
  <div>&nbsp;</div>
  <div>The way we use the rules in our application is that we load all
the copiled packages at the begining (we have API in place to replace,
remove or add packages in runtime).&nbsp; The users invoke operations on
different objects that get evaluated by the rules. Each time we call
onto our factory get the correspondiong rulebase and invoke
'newStatefulSession()'. If I understand this correctly each time we
create a new WorkingMemory instance which will not be garbage collected
when were done since there is a reference to it?</div>
  <div>&nbsp;</div>
  <div>What is the difference between Stateful and Stateless sessions? </div>
  <div>Is there a way to reuse working memory from a ruleBase?</div>
  <div>&nbsp;</div>
  <div>thnx</div>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
  </pre>
</blockquote>
<br>
</body>
</html>