Issue with caching Drools KnowledgeBase in memory in a web application

347 views
Skip to first unread message

Gururaja Shabada

unread,
Jan 10, 2015, 3:45:50 AM1/10/15
to drools...@googlegroups.com
Hi,
We are working on Drools 5.5 and we are creating knowledgebase from knowledge agent on application startup and storing it in context. (servlet context)
(We even tried creating the knowledgebase as singleton)

For every request we pass the fact(the object that we create for every req)  into knowledgbase and get the rules applied on this object . The issue we are facing is rules are getting skipped even with matched data sometimes.

The same rule gets fired when we create the knowledgBase from reading drl files again.

Any help on this is highly appropriated.

thanks
Guru

Davide Sottara

unread,
Jan 10, 2015, 9:17:41 PM1/10/15
to drools...@googlegroups.com
It's possibly a constraint jitting issue, we'd need a reproducer, in alternative you'll have to try a newer version like 5.6 (relatively easy) or 6.x (possibly less straightforward)
As a side note, how is the Knowledge Agent configured? Do you ever try to update the KB?

--
You received this message because you are subscribed to the Google Groups "Drools Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/78162f9d-ec4e-4858-94a4-eceba9670476%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages