[rules-users] Multiple threading

Wolfgang Laun wolfgang.laun at gmail.com
Fri Feb 10 03:23:01 EST 2012


2012/2/10 Apache <apache.zoom at yahoo.com>

> Hey,
> I am trying to get multiple threads to insert events and run rules against
> the union of events inserted ( an as soon as they are inserted, a timer
> drools thread kicking of fireallrules() is not an option because that would
> introduce a delay ) and wanted some opinion on the following:
>
> 1. Stateless session is basically a wrapper around statefulsession and
> since per doc  statefulsession is not threadsafe


>From where did you learn this?
-W


> is it  safe to assume 2 threads cannot insert and run fireallrules to
> compare against a union of objects inserted by multiple threads without
> some synchronication on event insertion and ESP fireallrulesrules ? ( would
> the answer still hold despite a drools-camel endpoint reading and storing
> exchanges from multiple threads ? )
>
> 2. If in the above point we simplify the case where the rule uses the
> "from" keyword and reads from a cache or a Db ( is reading from
> A cache supported out of the box ? ) then will drools bhaviour will be
> bound by the thread which invokes fireallrules() ?
> _______________________________________________
> 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/20120210/4aeda4c1/attachment.html 


More information about the rules-users mailing list