Jolokia Java Client library

The Jolokia Java client bindings provide typeless access to a remote JMX MBeanServer. Its programming model follows a request-response paradigm and is easy to use:

  J4pClient j4pClient = new J4pClient("http://localhost:8080/jolokia");
  J4pReadRequest req = new J4pReadRequest("java.lang:type=Memory","HeapMemoryUsage")
  req.setPath("used");
  J4pReadResponse resp = j4pClient.execute(req);
  System.out.println(resp.getValue());
      

This client library is described in detail with all configuration options in the reference manual.