Code

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 7fad08f922e299525ef8d53be4ad252a95144e31..99b140a210cbb74acba7862e115ddbb485207a66 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