Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-512

KSession MBeans are no longer created.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 6.2.0.CR2
    • 6.1.0.Beta4
    • None
    • None

      After upgrading drools dependencies from version 6.0.2-SNAPSHOT to 6.1.0-SNAPSHOT, the mbeans that used to be created for each KieSession no longer get created.

      The problem seems to have been introduced when the StatefulKnowledgeSessionImpl constructor was modified in this commit made by mfusco@redhat.com: https://github.com/droolsjbpm/drools/commit/1f8dc32725276a68456c5c4315c6a7c0b3f222ad

      The previous version of the constructor made a call to StatefulKnowledgeSession.setKnowledgeRuntime(InternalKnowledgeRuntime kruntime), which resulted in the ksession mbean being created and registered.

      I tried adding the following line to the end of the constructor, and the ksession mbeans started to get created again:

      setKnowledgeRuntime(this);
      

            mfusco@redhat.com Mario Fusco
            mikedev9000 Mike Wilson (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: