Uploaded image for project: 'HiveMind'
  1. HiveMind
  2. HIVEMIND-171

JMX Support does not work if you use the class directly as the interface

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.1
    • 1.2
    • jmx
    • None
    • Java 5

    Description

      If you construct a service directly using the class as the interface
      e.g.
      <service-point id="DummyService" interface="org.apache.fulcrum.hivemind.DummyService">
      <invoke-factory>
      <construct class="org.apache.fulcrum.hivemind.DummyService"/>
      </invoke-factory>
      </service-point>
      <contribution configuration-id="hivemind.management.MBeans" >
      <mbean service-id="fulcrum.hivemind.test.DummyService" />
      </contribution>

      The JMX service cannot initialse claiming the service does not implement the correct interface. If however you create an interface .e.g.
      <service-point id="DummyService" interface="org.apache.fulcrum.hivemind.IDummy">
      <invoke-factory>
      <construct class="org.apache.fulcrum.hivemind.DummyService"/>
      </invoke-factory>
      </service-point>
      <contribution configuration-id="hivemind.management.MBeans" >
      <mbean service-id="fulcrum.hivemind.test.DummyService" />
      </contribution>

      Then it all works fine.

      Attachments

        Activity

          People

            Unassigned Unassigned
            bgidley Ben Gidley
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: