[rules-users] Stateful Session

Shai Bentin shai at bentin.org
Mon Jun 18 05:03:45 EDT 2007


Can anyone explain to me why I would want to hold a reference to my working memory in the ruleBase?  
   
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).  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?  
   
What is the difference between Stateful and Stateless sessions?   
Is there a way to reuse working memory from a ruleBase?  
   
thnx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20070618/72f2bd71/attachment.html 


More information about the rules-users mailing list