[rules-users] loading rules into one package

Piotr Jedrychowski pjedrychowski at proximetry.pl
Tue Jan 18 08:32:39 EST 2011


Hello.

I'm loading a lot of rules during starting of JBoss. Loading of rules is 
made by such scenario:
1) Read first part of rules from database (about 4000 rules)
2) Send rules to Drools bean
3) Parse rules (convert string rules into Drools format) by 
KnowledgeBuilder - one package (pkg1) with all rules
4) Add rules into KnowledgeBase
5) Read second part of rules from database (about 4000)
6) Send rules to Drools bean
7) Parse rules (convert string rules into Drools format) by 
KnowledgeBuilder - one package (pkg1 - the same ad in point 3)) with all 
rules
8)Add rules into KnowledgeBase
and during second add operation JVM turns off, and generates file: 
hs_err_pid<number>.log with this log:

C2:101% !   
org.drools.lang.DRLParser.rhs_chunk_data()Lorg/drools/lang/DRLParser$rhs_chunk_data_return; 
@ 169 (723 bytes)

What is the reason of this behaviour? Is it possible to add rules to 
existing packaged - 8) point from scenario? Maybe someone had similar 
problem?

I'm using:
1) Drools 5.1.0
2) JBoss 4.2.3

Regards,
Piotr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110118/d24ef9fc/attachment.html 


More information about the rules-users mailing list