Sorry...correction to last two lines below:
rulePackage.Base = KnowledgeBaseFactory.newKnowledgeBase(config);
rulePackage.Base.addKnowledgePackages(builder.getKnowledgePackages());
should be:
KnowledgeBase= KnowledgeBaseFactory.newKnowledgeBase(config);
KnowledgeBase.addKnowledgePackages(builder.getKnowledgePackages());
Dan Seaver wrote:
Drools 5.0 - I'm planning on using compiled rule packages in our J2EE
production environment. I'm very interested in performance. I assume that
once a package is loaded, it doesn't matter if or how it was compiled, so
the primary concern is in the load time (unless there are other issues I'm
unaware of?)
Any difference between Janino builds versus Eclipse builds?
Which compiler does Guvnor use?
Is the high speed drools serialization being used for building / loading
binary packages?
Any faster technique for loading a binary package than using:
KnowledgeBuilder builder = KnowledgeBuilderFactory.newKnowledgeBuilder();
builder.add(ResourceFactory.newInputStreamResource(inStream),
ResourceType.PKG);
if (builder.hasErrors()) {
logger.error(builder.getErrors());
return;
}
rulePackage.Base = KnowledgeBaseFactory.newKnowledgeBase(config);
rulePackage.Base.addKnowledgePackages(builder.getKnowledgePackages());
Thanks in advance for any illumination.
Dan
--
View this message in context:
http://www.nabble.com/Working-with-compiled-packages-tp22256636p22256684....
Sent from the drools - user mailing list archive at
Nabble.com.