Debian Codegraph @

src/docbkx/introduction.xml

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 ~ Copyright 2009-2013 Roland Huss
4 ~
5 ~ Licensed under the Apache License, Version 2.0 (the "License");
6 ~ you may not use this file except in compliance with the License.
7 ~ You may obtain a copy of the License at
8 ~
9 ~ http://www.apache.org/licenses/LICENSE-2.0
10 ~
11 ~ Unless required by applicable law or agreed to in writing, software
12 ~ distributed under the License is distributed on an "AS IS" BASIS,
13 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 ~ See the License for the specific language governing permissions and
15 ~ limitations under the License.
16 -->
17
18 <chapter id="introduction">
19 <title>Introduction</title>
20 <para>
21 JMX (Java Management Extensions) is <emphasis>the</emphasis>
22 standard management solution in the Java world. Since JDK 1.5 it
23 is available in every Java Virtual Machine and especially Java EE
24 application servers use JMX for their management business.
25 </para>
26 <para>
27 I love JMX. It is a well crafted specification, created in times
28 where other concepts like EJBs failed spectacularly. Even more
29 than ten years after its incubation it is still the one-and-only
30 when it comes to management in the Java world. Especially the
31 various levels of sophistications for implementing MBeans,
32 starting with dead simple <emphasis>Standard MBeans</emphasis> and
33 ending in very flexible Open MBeans and MXBeans, are impressive.
34 </para>
35 <para>
36 However, some of the advanced JMX concepts didn't really appeal to the
37 public and are now effectively obsolete. Add-on standards like <ulink
38 url="http://jcp.org/en/jsr/detail?id=77">JSR-77</ulink> didn't
39 received the adoption level they deserved. And then there is
40 <ulink url="http://jcp.org/en/jsr/detail?id=160">JSR-160</ulink>,
41 JMX remoting. This specificatiion is designed for ease of usage
42 and has the ambition to transparently hide the technical details
43 behind the remote communication so that is makes (nearly) no
44 difference, whether MBeans are invoked locally or
45 remotely. Unfortunately, the underlying transport protocol (RMI)
46 and programing model is very Java centric and is not usable
47 outside the Java world.
48 </para>
49 <para>
50 This is where Jolokia steps in. It is an agent based approach,
51 living side by side with JSR-160, but uses the much more open HTTP
52 for its transport business where the data payload is serialized in
53 JSON. This opens a whole new world for different, non-Java
54 clients. Beside this protocol switch, Jolokia provides new
55 features for JMX remoting, which are not available in JSR-160
56 connectors: Bulk requests allow for multiple JMX operations with a
57 single remote server roundtrip. A fine grained security mechanism
58 can restrict the JMX access on specific JMX operations. Other
59 features like the JSR-160 proxy mode or history tracking are
60 specific to Jolokia, too.
61 </para>
62 <para>
63 This reference manual explains the details of Jolokia. After an
64 overview of Jolokia's architecture in <xref
65 linkend="architecture"/>, installation and configuration of the
66 various Jolokia agents are described in <xref
67 linkend="agents"/>. Jolokia's security policy mechanism (<xref
68 linkend="security"/>) and proxy mode (<xref linkend="proxy"/>) are
69 covered in the following chapters. For implementors of Jolokia
70 client bindings the protocol definition is probably the most
71 interesting part (<xref linkend="protocol"/>). Jolokia itself
72 comes with the preregistered MBeans listed in <xref
73 linkend="mbeans"/>. The available client bindings are described
74 in <xref linkend="clients"/>.
75 </para>
76 </chapter>