Jolokia 2.0.1

Jolokia can be downloaded in two variants: As a binary release including the agents, client libraries and the reference manual. The source release contains the complete source tree mirroring the repository at GitHub.

The agents and the client library can be downloaded directly from Maven Central:

Artifact Download

WAR-Agent

jolokia-agent-war-2.0.1.war

WAR-Agent (unsecured)

jolokia-agent-war-unsecured-2.0.1.war

Osgi-Agent

jolokia-agent-osgi-2.0.1.jar

JVM-Agent

jolokia-jvm-2.0.1-javaagent.jar

Java Client Library

jolokia-client-java-2.0.1.jar

Jolokia JSR-160 JMX Adapter

jolokia-client-jmx-adapter-2.0.1.jar

Jolokia JSR-160 JMX Adapter Kubernetes Extension

jolokia-client-kubernetes-2.0.1.jar

JavaScript Library

The Jolokia JavaScript client library comes in two variants: jolokia.js contains the basics and can be used with its request() for sending JSON requests. jolokia-simple.js adds on this code and provides a simplified API for Jolokia request, but is slightly less powerful. Finally, jolokia-cubism.js contains the Jolokia Cubism integration which adds Jolokia as a data source. The -min versions are compressed with all documentation stripped off and recommended for production use.

Script Download

Base script

jolokia.js

Base script, compressed

jolokia-min.js

Simplified API

jolokia-simple.js

Simplified API, compressed

jolokia-simple-min.js

Jolokia Cubism Integration

jolokia-cubism.js

Jolokia Cubism Integration, compressed

jolokia-cubism-min.js

Jolokia JavaScript library is also available in NPM Registry. In your project you just need to use npm or yarn

$ npm i jolokia.js

added 2 packages in 361ms

$ npm list
my-project@ ~/projects/my-project
└── [email protected]

Maven

Note

Jolokia 2.0: In Jolokia 2.0 the functionality has been split into multiple modules, so that you need to declare those modules separately as dependencies. Including only jolokia-server-core.jar is usually not good enough.

The main agent functionality is encapsulated in a jolokia-server-core jar:

<dependency>
    <groupId>org.jolokia</groupId>
    <artifactId>jolokia-server-core</artifactId>
    <version>2.0.1</version>
</dependency>

This jar contains the pluggable core Jolokia functionality that includes HTTP request handling and basic workflow. However what is also needed is:

  • support for actual JMX operations (read, exec, search) on detected MBean Servers

  • JSON serialization

While Jolokia 1.x contained this important functionality within jolokia-core.jar, in Jolokia 2.0, two additional libraries are needed:

<dependency>
    <groupId>org.jolokia</groupId>
    <artifactId>jolokia-service-jmx</artifactId>
    <version>2.0.1</version>
</dependency>
<dependency>
    <groupId>org.jolokia</groupId>
    <artifactId>jolokia-service-serializer</artifactId>
    <version>2.0.1</version>
</dependency>

Java client library can also be used as a Maven dependency:

<dependency>
    <groupId>org.jolokia</groupId>
    <artifactId>jolokia-client-java</artifactId>
    <version>2.0.1</version>
</dependency>

More information about available Jolokia modules can be found on Libraries page.

The released Jolokia artifacts are available from Maven Central.