Lyle Wang created DROOLS-3093:
---------------------------------
Summary: Necessary configuration information is missing when running rules
engine in active mode
Key: DROOLS-3093
URL:
https://issues.jboss.org/browse/DROOLS-3093
Project: Drools
Issue Type: Enhancement
Components: docs
Affects Versions: 7.12.0.Final, 6.5.0.Final
Reporter: Lyle Wang
Assignee: Mario Fusco
When following this doc page to run rules engine in active mode
https://docs.jboss.org/drools/release/6.5.0.Final/drools-docs/html/ch07.h...
If application code opens another thread and do ksession.insert(fact) then it's
possible to have threading issues.
https://access.redhat.com/solutions/3645752
Requesting to add suggestion to highlight
"ThreadSafeTrackableTimeJobFactoryManager" should be used in multithreading
environment, code example:
-------------------------------------------------------------
KieSessionConfiguration kconf = KnowledgeBaseFactory.newKnowledgeSessionConfiguration();
((org.drools.core.SessionConfiguration)kconf).setTimerJobFactoryType(
TimerJobFactoryType.THREAD_SAFE_TRACKABLE );
KieSession ksession = kContainer.newKieSession("ksession-name", kconf);
-------------------------------------------------------------
Following code change has been made to update the default implementation to use
ThreadSafeTrackableTimeJobFactoryManager :
https://github.com/kiegroup/drools/commit/92623e2435401db4f80eaf5e3e804c1...
--
This message was sent by Atlassian Jira
(v7.12.1#712002)