I'm trying to write a plugin that will use the management capability in Jboss w/regard to web services. I have created an XML plugin definition which the server and agent have accepted and have a web service in the server as seen by the jmx console. But nothing is happening with my plugin being used to discover the web service. Can anyone advise me on what I have done wrong?
Thanks, John Holland
====================================================== <plugin xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:xmlns:rhq-plugin" xmlns:c="urn:xmlns:rhq-configuration" name="myws-plugin" version="1.0" displayName="Custom JMX Plugin"> <depends plugin="JMX"/> <!-- This service represents your custom MBean. You can have any number of these defined. ***Do not change the "discovery" and "class" attribute values.*** --> <service name="My Custom Service" description="A custom service representing a single custom MBean" discovery="org.rhq.plugins.jmx.MBeanResourceDiscoveryComponent" class="org.rhq.plugins.jmx.MBeanResourceComponent"> <!-- Denotes that the custom MBean can be found in any custom JMX server detected via EMS or it can be in any JBossAS resource. You typically do not have to change these, unless you want to add new types inside which your service can run. --> <runs-inside> <parent-resource-type name="JMX Server" plugin="JMX"/> <parent-resource-type name="JBossAS Server" plugin="JBossAS"/> </runs-inside> <!-- Define the object name of your custom MBean --> <!-- If the MBean name has dynamic keys, use %% as in: --> <!-- myDomain:type=myMBean,id=%myKey% --> <!-- Then define a simple-property "myKey" so it can be stored when auto-discovered. --> <plugin-configuration> <c:simple-property name="objectName" default="myDomain:type=org.jboss.wsf.framework.management.ManagedEndpoint" readOnly="true"/> </plugin-configuration> <!-- Define any operations your custom MBean exposes and that you want to invoke via RHQ. --> <!-- <operation name="mbeanOperationName" displayName="Friendly Operation Name" description="This describes what the MBean's operation does"/> --> <!-- Define any attributes your custom MBean exposes and that you want monitored via RHQ. NOTE: The property attribute should start with a capital letter. --> <!-- <metric property="MBeanAttributeName" displayName="Friendly Attribute Name" defaultOn="true" category="performance" description="This describes what the MBean's attribute means"/> --> <metric property="RequestCount" displayName="Request Count" defaultOn="true" category="performance" description="Number of Requests"/> <metric property="ResponseCount" displayName="Response Count" defaultOn="true" category="performance" description="Number of Responses"/> </service> </plugin>
rhq-users@lists.stg.fedorahosted.org