$ npm i jolokia.js
added 2 packages in 361ms
$ npm list
my-project@ ~/projects/my-project
└── [email protected]
Jolokia 2.1.2
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 |
|
WAR-Agent (unsecured) |
|
Osgi-Agent |
|
JVM-Agent |
|
Java Client Library |
|
Jolokia JSR-160 JMX Adapter |
|
Jolokia JSR-160 JMX Adapter Kubernetes Extension |
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 |
|
Base script, compressed |
|
Simplified API |
|
Simplified API, compressed |
|
Jolokia Cubism Integration |
|
Jolokia Cubism Integration, compressed |
Jolokia JavaScript library is also available in NPM Registry. In your project you just need to use npm
or yarn
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 |
The main agent functionality is encapsulated in a jolokia-server-core
jar:
<dependency>
<groupId>org.jolokia</groupId>
<artifactId>jolokia-server-core</artifactId>
<version>2.1.2</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.1.2</version>
</dependency>
<dependency>
<groupId>org.jolokia</groupId>
<artifactId>jolokia-service-serializer</artifactId>
<version>2.1.2</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.1.2</version>
</dependency>
More information about available Jolokia modules can be found on Libraries page.
The released Jolokia artifacts are available from Maven Central.