[rules-users] Stateless Vs Stateful Sessions in Webtier

Simon Thum simon.thum at gmx.de
Wed Jan 20 06:41:47 EST 2010


Pritam wrote:
> Drools says, for rules itself, "it doesn't matter whether you use stateless
> or stateful ksession ..." then why is that an entire set of metadata like
> grouping and ordering is ignored?

As I understood it, a stateless session behaves as if the only object
known to it is the one you just inserted. Personally, I look at it like:

stateless -> propositional logic
stateful -> first-order logic

I'm not sure that's 100% true though. In any case, it depends on the
kind of questions you like to ask. If you're not sure, test it.
Cheers,

Simon



More information about the rules-users mailing list