From: Alexandre Moutot Date: Wed, 9 Oct 2013 13:47:48 +0000 (+0200) Subject: Add a JMXProvider Class Loader to be able to load Provider using X-Git-Tag: collectd-5.5.0~340^2 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=9d0c6edab10103c67aa9a4a11c5bc2f57ab0902a;p=collectd.git Add a JMXProvider Class Loader to be able to load Provider using getConnectorAsService from JMXConnectorFactory. The protocol remoting-jmx using by JBOSS > 7 need that to work. --- diff --git a/bindings/java/org/collectd/java/GenericJMXConfConnection.java b/bindings/java/org/collectd/java/GenericJMXConfConnection.java index 7fad08f9..99b140a2 100644 --- a/bindings/java/org/collectd/java/GenericJMXConfConnection.java +++ b/bindings/java/org/collectd/java/GenericJMXConfConnection.java @@ -118,6 +118,7 @@ private void connect () /* {{{ */ environment = new HashMap (); environment.put (JMXConnector.CREDENTIALS, credentials); + environment.put(JMXConnectorFactory.PROTOCOL_PROVIDER_CLASS_LOADER, this.getClass().getClassLoader()); } try