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

         Key: HIVEMIND-171
         URL: http://issues.apache.org/jira/browse/HIVEMIND-171
     Project: HiveMind
        Type: Bug
  Components: jmx  
    Versions: 1.1    
 Environment: Java 5
    Reporter: Ben Gidley


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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to