Barry,
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.
[]s
Edson
2008/5/14 Barry K <barry.knapp(a)railinc.com>:
We have an application with 2 rules engines and we load the rules on
startup.
Is creation of a rulebase threadsafe?
Can I load both rulebases using the code below concurrently in 4.07 ?
I encountered issues multithreading this in 4.01 but in prototyping for our
4.07 upgrade I have not encountered the same issues.
PackageBuilder builder = new PackageBuilder(pkgBuilderCfg);
builder.addPackageFromDrl( new StringReader(ruleset) );
RuleBase ruleBase = RuleBaseFactory.newRuleBase();
Thanks
Barry
--
View this message in context:
http://www.nabble.com/Multithreading-Rulebase-Parsing-Threadsafe-tp172399...
Sent from the drools - user mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
--
Edson Tirelli
JBoss Drools Core Development
Office: +55 11 3529-6000
Mobile: +55 11 9287-5646
JBoss, a division of Red Hat @
www.jboss.com