<br>&nbsp;&nbsp; Barry,<br><br>&nbsp;&nbsp; We fixed all threading issues we were aware of in 4.0.5-4.0.7. So, it is safe to use it now. Just make sure the only thing you eventually share among threads is the rulebase. Do not share session or packages among threads.<br>
<br>&nbsp;&nbsp; []s<br>&nbsp;&nbsp; Edson<br><br><div class="gmail_quote">2008/5/14 Barry K &lt;<a href="mailto:barry.knapp@railinc.com">barry.knapp@railinc.com</a>&gt;:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
We have an application with 2 rules engines and we load the rules on startup.<br>
Is creation of a rulebase threadsafe?<br>
Can I load both rulebases using the code below concurrently in 4.07 ?<br>
<br>
I encountered issues multithreading this in 4.01 but in prototyping for our<br>
4.07 upgrade I have not encountered the same issues.<br>
<br>
PackageBuilder builder = new PackageBuilder(pkgBuilderCfg);<br>
builder.addPackageFromDrl( new StringReader(ruleset) );<br>
RuleBase ruleBase = RuleBaseFactory.newRuleBase();<br>
<br>
Thanks<br>
Barry<br>
<font color="#888888"><br>
<br>
--<br>
View this message in context: <a href="http://www.nabble.com/Multithreading-Rulebase-Parsing-Threadsafe-tp17239987p17239987.html" target="_blank">http://www.nabble.com/Multithreading-Rulebase-Parsing-Threadsafe-tp17239987p17239987.html</a><br>

Sent from the drools - user mailing list archive at Nabble.com.<br>
<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>
</font></blockquote></div><br><br clear="all"><br>-- <br> Edson Tirelli<br> JBoss Drools Core Development<br> Office: +55 11 3529-6000<br> Mobile: +55 11 9287-5646<br> JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a>