[rules-users] Looking for smart way to import huge amount of rules into BRMS

Benson Fung benson.redhat at gmail.com
Thu Jan 27 03:46:04 EST 2011


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 at 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 at 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 at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>>
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110127/d5e026b4/attachment.html 


More information about the rules-users mailing list