>> Am 09.05.2011 um 22:50 schrieb Ian Springer:
>>>>
pluginConfiguration.put(new PropertySimple(JMXDiscoveryComponent.CONNECTION_TYPE,
>>>>
LocalVMTypeDescriptor.class.getName()));
>>> I thought the LocalVMTypeDescriptor conn type was for when
the managed
>>> JMX server was inside the same process as the RHQ plugin container,
at
>> It works for the Hadoop plugin, where all the hadoop processes
are outside the VM.
>>
>>
>I checked the EMS source code and indeed it using the Java Attach API
to
discover all VMs on the local machine. I always assumed the "Local"
in
the connection type classname meant "local to the JVM", but apparently
it actually means "local to the machine". For anyone else that's
curious
what EMS does under the covers to discover the JVMs, the meat of the
code is in this class:
Entered a Bug report, 703557,
and attached the plugin we wrote. Compare that to what you are doing
here, probably the same general approach. Also added a request for
a Tomcat Datasource support in the tomcat plugin, with an attached plugin
that does that....bug 703562
David Webster
Union Pacific Railroad
Lead Architect-Web Infrastructure
Systems Engineering
Phone: (402) 544-1094 | Email: dawebster@up.com