Perfect answer.  Thanks!

 

railinc

____________________________________________________

Barry Knapp

Barry.Knapp@RailInc.com

office   919.651.5039

cell       919.995.0396

MSN     barry25@hotmail.com

AIM      BarryRKnapp

Yahoo  BarryKnapp

 

From: rules-users-bounces@lists.jboss.org [mailto:rules-users-bounces@lists.jboss.org] On Behalf Of Edson Tirelli
Sent: Thursday, May 15, 2008 10:05 AM
To: Rules Users List
Subject: Re: [rules-users] Multithreading Rulebase Parsing Threadsafe

 


   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@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-tp17239987p17239987.html
Sent from the drools - user mailing list archive at Nabble.com.

_______________________________________________
rules-users mailing list
rules-users@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