Various agents are available for providing Jolokia services in different environments:
The WAR agent jolokia.war deploys as a regular web archive (WAR) in a JEE server. Deployment is simple (often only a copy in a certain directory) and the agent can be tuned like a normal web application. Setting it up the agent servlet for secure communication is a well known business (but specific to every application server) and the same as for any other web archive. The runtime behaviour like connection pooling or dedicated HTTP connector can be tuned very easily (for Tomcat, see this example for setting up an extra HTTP connector for this agent).
Also, this is the agent for the proxy mode where it is deployed in a simple, dedicated application server like Tomcat or Jetty.
The WAR agent has been tested to work on
This is the most widely used agent. Read more about the WAR agent and its installation.
For an OSGi environment an agent packaged as an OSGi bundle is provided. The bundle comes in two flavors: The minimal bundle jolokia-osgi.jar, including only the agent itself (and an json-simple embedded), which requires an already installed OSGi HTTP service like the Pax-Web HTTP-Service. A second version jolokia-osgi-bundle.jar is an all-in-one bundle, including the Pax Web HTTP-Service. This bundle is useful for quick installations, where no HTTP-Service is already existent. However, for best fitting the OSGi philosophy, the usage of the minimal bundle is recommended.
The OSGi agent has been tested with the following containers:
Read more about the OSGi agent and its installation.
Since Java 5 it is possible to start so called JVM agents in advance before starting a Java application. This technique is used e.g. by profiling tools for installing global classloaders in order to instrument classes. Additionally, Sun's Java 6 JVM comes with a simple embedded HTTP-Server which is used e.g. for exposing web services with the default JAXWS implementation coming with Java 6.
This Jolokia agent uses the agent API and the HTTPServer to allow instrumenting any Java application running with a Sun Java 6 VM, not only application servers.
The JVM Agent has been tested with:
Read more about the JVM agent and its installation.
The Mule Standalone ESB offers a dedicated JMX agent interface, into which this agents plugs in seemlessly.
This agent has been tested for Mule 2 and Mule 3 (3.1.1 and 3.2.0).