Here's the same section from the Plugin Demo - Writing Custom JMX
Plugin:
<service name="First Custom Service"
description="Our first MBean custom service whose 'id' is
static"
discovery="org.rhq.plugins.jmx.MBeanResourceDiscoveryComponent"
class="org.rhq.plugins.jmx.MBeanResourceComponent">
<runs-inside>
<parent-resource-type name="JMX Server" plugin="JMX"/>
<parent-resource-type name="JBossAS Server"
plugin="JBossAS"/>
</runs-inside>
I just followed the above example.
I did find one error but fixing it had no effect:
<c:simple-property name="descriptionTemplate" default="Initiate Hub
{engine} on port {port} Interaction [interaction}"/>
should be:
<c:simple-property name="descriptionTemplate" default="Initiate Hub
{engine} on port {port} Interaction {interaction}"/>
Notice the erroneous "["
Al Amyot | Consultant
Sierra Systems
(eHealth): 204-926-4257 (T): 204-942-2575 (F): 204-942-2047
444 St. Mary Avenue, Suite 1050
Winnipeg, MB R3C 3T1
Management Consulting | System Integration | Managed Services
website:
www.SierraSystems.com
-----Original Message-----
From: rhq-users-bounces(a)lists.fedorahosted.org
[mailto:rhq-users-bounces@lists.fedorahosted.org] On Behalf Of John
Mazzitelli
Sent: Thursday, November 18, 2010 3:51 PM
To: rhq-users(a)lists.fedorahosted.org
Subject: Re: Custom JMX plugin problems
The runs inside:
<runs-inside>
<parent-resource-type name="JMX Server" plugin="JMX"/>
</runs-inside>
looks to be out of place no? Shouldn't that be inside the <server>
element, not inside the child <service> element?
Unsure if that's the cause of your problem, but that's the thing that
jumped out at me when I looked.
_______________________________________________
rhq-users mailing list
rhq-users(a)lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/rhq-users
This email and/or any documents in this transmission is intended for the
addressee(s) only and may contain legally privileged or confidential information. Any
unauthorized use, disclosure, distribution, copying or dissemination is strictly
prohibited. If you receive this transmission in error, please notify the sender
immediately and return the original.
Ce courriel et tout document dans cette transmission est destiné à la personne ou aux
personnes à qui il est adressé. Il peut contenir des informations privilégiées ou
confidentielles. Toute utilisation, divulgation, distribution, copie, ou diffusion non
autorisée est strictement défendue. Si vous n'êtes pas le destinataire de ce message,
veuillez en informer l'expéditeur immédiatement et lui remettre l'original.