You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hivemind.apache.org by "Ben Gidley (JIRA)" <hi...@jakarta.apache.org> on 2006/03/16 12:48:03 UTC

[jira] Created: (HIVEMIND-171) JMX Support does not work if you use the class directly as the interface

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: hivemind-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-dev-help@jakarta.apache.org


[jira] Resolved: (HIVEMIND-171) JMX Support does not work if you use the class directly as the interface

Posted by "Achim Hügen (JIRA)" <hi...@jakarta.apache.org>.
     [ http://issues.apache.org/jira/browse/HIVEMIND-171?page=all ]
     
Achim Hügen resolved HIVEMIND-171:
----------------------------------

    Fix Version: 1.2
     Resolution: Fixed

> 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
>      Fix For: 1.2

>
> 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: hivemind-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-dev-help@jakarta.apache.org