Uploaded image for project: 'JBRULES'
  1. JBRULES
  2. JBRULES-3474

Allow to start knowledge agent scanning from drools spring configuration

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Major
    • 5.3.2.Final, 5.4.0.Final
    • None
    • None
    • None

    Description

      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.

      Attachments

        Activity

          People

            mfusco@redhat.com Mario Fusco
            mfusco@redhat.com Mario Fusco
            Archiver:
            rhn-support-ceverson Clark Everson

            Dates

              Created:
              Updated:
              Resolved:
              Archived:

              PagerDuty