2012/2/10 Apache <span dir="ltr">&lt;<a href="mailto:apache.zoom@yahoo.com">apache.zoom@yahoo.com</a>&gt;</span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hey,<br>
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:<br>

<br>
1. Stateless session is basically a wrapper around statefulsession and since per doc  statefulsession is not threadsafe</blockquote><div><br></div><div>From where did you learn this?</div><div>-W</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
 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 ? )<br>

<br>
2. If in the above point we simplify the case where the rule uses the &quot;from&quot; keyword and reads from a cache or a Db ( is reading from<br>
A cache supported out of the box ? ) then will drools bhaviour will be bound by the thread which invokes fireallrules() ? <br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br>