[rules-users] Reuse statless session

Wolfgang Laun wolfgang.laun at gmail.com
Wed Oct 27 06:59:25 EDT 2010


2010/10/27 Bruno Freudensprung <bruno.freudensprung at temis.com>:
>
> Alright... The test case was delivered with the following documentation
> (extract of the "Drools JBoss Rules 5.0 Developer's Guide" book):
>
> "org.drools.runtime.StatelessKnowledgeSession
[snip]
> The benefit that statelessness brings is that
> the rule engine can do more optimizations.

Ha!
I've been trying to find out about exactly this reputed distinction between
stateful and stateless sessions, NOT to be confused with "sequential mode",
which does introduce optimizations.

No success so far.

-W


> StatelessKnowledgeSession as well
> as stateful session support a command interface (command design pattern).
> There is no need to dispose a stateless session after it has been used."
>
> Bruno.



More information about the rules-users mailing list