Bug 768864 - spring drools knowledge agent scanning
Summary: spring drools knowledge agent scanning
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: JBoss Enterprise BRMS Platform 5
Classification: JBoss
Component: BRE (Expert, Fusion)
Version: BRMS 5.3.0.GA
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ER6
: BRMS 5.3.0.GA
Assignee: Mario Fusco
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-19 08:31 UTC by Radovan Synek
Modified: 2025-02-10 03:14 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-02-10 03:14:32 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker JBRULES-3474 0 Major Resolved Allow to start knowledge agent scanning from drools spring configuration 2014-05-08 10:15:59 UTC

Description Radovan Synek 2011-12-19 08:31:14 UTC
Having following spring configuration:

<drools:kbase id="kbase"/>
 
<drools:kagent id="kagent" kbase="kbase" new-instance="false">           
    <drools:resources>
        <drools:resource type="DRL" source="classpath:org/jboss/qa/brms/bre/container/spring/rules/sample.drl"/>
    </drools:resources>
</drools:kagent>

<drools:resource-change-scanner id="scanner" interval="1" />


--------------------------------------------------------------------------------

Expecting resource scanning by knowledge agent is configured and running, but no change in resource file detected. This is because ResourceChangeNotifierService and ResourceChangeScannerService are not running, they must be started manually:

ResourceFactory.getResourceChangeNotifierService().start();
ResourceFactory.getResourceChangeScannerService().start();

I think these services should be started automatically when resource-change-scanner is configured in spring context or there should be chance to configure service starting from xml.

Comment 1 JBoss JIRA Server 2012-04-20 15:09:05 UTC
Mario Fusco <mario.fusco> updated the status of jira JBRULES-3474 to Resolved

Comment 2 Mario Fusco 2012-04-20 15:11:49 UTC
I added an optional boolean attribute "enabled" to the resource-change-scanner element that, when set to true, starts the scanner and notifier service automatically.

Comment 3 Ryan Zhang 2012-04-23 07:40:07 UTC
Update status to ON_QA. Please verify them against ER6.

Comment 9 Red Hat Bugzilla 2025-02-10 03:14:32 UTC
This product has been discontinued or is no longer tracked in Red Hat Bugzilla.


Note You need to log in before you can comment on or make changes to this bug.