[rules-users] Multithreading Rulebase Parsing Threadsafe

Knapp, Barry barry.knapp at railinc.com
Thu May 15 10:45:21 EDT 2008


Perfect answer.  Thanks!

 

 

____________________________________________________

Barry Knapp

Barry.Knapp at RailInc.com

office   919.651.5039

cell       919.995.0396

MSN     barry25 at hotmail.com 

AIM      BarryRKnapp

Yahoo  BarryKnapp

 

From: rules-users-bounces at lists.jboss.org
[mailto:rules-users-bounces at 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 at 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-tp17239
987p17239987.html
Sent from the drools - user mailing list archive at Nabble.com.

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20080515/0e54955c/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 1864 bytes
Desc: image001.jpg
Url : http://lists.jboss.org/pipermail/rules-users/attachments/20080515/0e54955c/attachment.jpe 


More information about the rules-users mailing list