Hi Wolfgang,
Thanks for your information. Can you tell me more about how to build the
knowledge base off line? And how to load the serialized object during
startup? What I usually do is put the following code fragment into the
init(...) method of the Servlet first and it will be invoked during
application Startup.
KnowledgeAgent kagent = KnowledgeAgentFactory.newKnowledgeAgent(
"BenAgent" );
kagent.applyChangeSet(ResourceFactory.newClassPathResource("change-set.xml"));
KnowledgeBase kbase = kagent.getKnowledgeBase();
ResourceFactory.getResourceChangeNotifierService().start();
ResourceFactory.getResourceChangeScannerService().start();
getServletContext().setAttribute("KNOWLEDGE_AGENT", kagent);
Please comments
Thanks
2011/1/27 Wolfgang Laun <wolfgang.laun(a)gmail.com>
Consider building the Knowledge Base off-line and to load the
serialized
object during application startup.
-W
2011/1/27 Benson Fung <benson.redhat(a)gmail.com>
> Hi,
>
> I need to import a drl file with 9000 rules inside into BRMS. However, I
> found that it takes very long time to import and it also takes long time to
> get downloaded into the application to build the ruleBase. Is there any
> smart way or faster way to manage this procedure? Please advise
>
>
> Thanks
>
> _______________________________________________
> rules-users mailing list
> rules-users(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/rules-users
>
>
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users