Add a JMXProvider Class Loader to be able to load Provider using
authorAlexandre Moutot <a.moutot@alphalink.fr>
Wed, 9 Oct 2013 13:47:48 +0000 (15:47 +0200)
committerAlexandre Moutot <a.moutot@alphalink.fr>
Wed, 9 Oct 2013 13:47:48 +0000 (15:47 +0200)
getConnectorAsService from JMXConnectorFactory. The protocol remoting-jmx
using by JBOSS > 7 need that to work.

bindings/java/org/collectd/java/GenericJMXConfConnection.java

index 7fad08f..99b140a 100644 (file)
@@ -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