[rules-users] Stateful Session
Mark Proctor
mproctor at codehaus.org
Mon Jun 18 06:22:35 EDT 2007
dynamic rules - will you be adding new rules to your rulebase? If so
that rulebase needs to know know which working memories to update.
Mark
Shai Bentin wrote:
> 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
> ------------------------------------------------------------------------
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20070618/200b0483/attachment.html
More information about the rules-users
mailing list