[rules-users] Using compiled packages

Dan Seaver dan.seaver at ge.com
Tue Feb 17 20:07:54 EST 2009


It is my intention to build all rule packages in Guvnor (or some other
process) before deploying the packages to a production environment. I see
that I can use a KnowledgeBuilder with a PKG type resource to create
KnowledgePackages, and then initialize a KnowledgeBase with the
KnowledgePackages.

Though this should do the job for me, is there a way to setup the
KnowledgeBase with the compiled packages without using a KnowledgeBuilder?
My desires are to keep overhead to a minimum and optimize performance during
the initialization step.

In Drools 4, I did this with RuleBase.addPackage using java's standard
serialization techniques. but am uncertain if I can use
KnowledgeBase.addPackages the same way. I assume the binary packages that
are built with Guvnor uses the new drools serialization, so I need to know
how to use that to serialize and deserialize packages as well.

Thanks in advance for any help.
-- 
View this message in context: http://www.nabble.com/Using-compiled-packages-tp22070145p22070145.html
Sent from the drools - user mailing list archive at Nabble.com.




More information about the rules-users mailing list