Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > ee5115d1de8d9cf1c36a33cc4513700b > files > 1063

mx4j-manual-3.0.1-9.mga4.noarch.rpm

<html><head><META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Chapter&nbsp;3.&nbsp;JSR 160 (JMX Remoting) Explained</title><link href="styles.css" type="text/css" rel="stylesheet"><meta content="DocBook XSL Stylesheets V1.78.1" name="generator"><link rel="home" href="index.html" title="MX4J English Documentation"><link rel="up" href="index.html" title="MX4J English Documentation"><link rel="prev" href="ch02s04.html" title="The javax.management.MBeanServerInvocationHandler class"><link rel="next" href="ch03s02.html" title="How to use JSR 160"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table summary="Navigation header" width="100%"><tr><th align="center" colspan="3">Chapter&nbsp;3.&nbsp;JSR 160 (JMX Remoting) Explained</th></tr><tr><td align="left" width="20%"><a accesskey="p" href="ch02s04.html">Prev</a>&nbsp;</td><th align="center" width="60%">&nbsp;</th><td align="right" width="20%">&nbsp;<a accesskey="n" href="ch03s02.html">Next</a></td></tr></table><hr></div><div class="chapter"><div class="titlepage"><div><div><h1 class="title"><a name="N10321"></a>Chapter&nbsp;3.&nbsp;JSR 160 (JMX Remoting) Explained</h1></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl class="toc"><dt><span class="section"><a href="ch03.html#N10324">What is JSR 160 ?</a></span></dt><dd><dl><dt><span class="section"><a href="ch03.html#N10327">Introduction</a></span></dt><dt><span class="section"><a href="ch03.html#N1033C">MX4J's JSR 160 implementation</a></span></dt></dl></dd><dt><span class="section"><a href="ch03s02.html">How to use JSR 160</a></span></dt><dd><dl><dt><span class="section"><a href="ch03s02.html#N10373">Introduction</a></span></dt><dt><span class="section"><a href="ch03s02.html#N1037A">JMXServiceURLs</a></span></dt><dt><span class="section"><a href="ch03s02.html#N103A9">Creating a JMXConnectorServer</a></span></dt><dt><span class="section"><a href="ch03s02.html#N103DD">Creating a JMXConnector</a></span></dt><dt><span class="section"><a href="ch03s02.html#N10409">Remote Notifications</a></span></dt></dl></dd><dt><span class="section"><a href="ch03s03.html">JSR 160 Security</a></span></dt><dd><dl><dt><span class="section"><a href="ch03s03.html#N10463">Requiring user authentication to connect to a JMXConnectorServer</a></span></dt><dt><span class="section"><a href="ch03s03.html#N104B7">Running under SecurityManager and Subject Delegation</a></span></dt></dl></dd><dt><span class="section"><a href="ch03s04.html">Advanced JSR 160</a></span></dt><dd><dl><dt><span class="section"><a href="ch03s04.html#N10534">Intercepting calls between the JSR 160 JMXConnectorServer and the MBeanServer</a></span></dt></dl></dd><dt><span class="section"><a href="ch03s05.html">Standard JSR 160 JMXConnectors and JMXConnectorServers</a></span></dt><dd><dl><dt><span class="section"><a href="ch03s05.html#N10559">Overview of RMIConnector and RMIConnectorServer</a></span></dt><dt><span class="section"><a href="ch03s05.html#N1056C">Connecting to the RMIConnectorServer</a></span></dt><dt><span class="section"><a href="ch03s05.html#N105BB">ORB properties for JMXConnector and JMXConnectorServer over IIOP</a></span></dt><dt><span class="section"><a href="ch03s05.html#N105C8">RMI socket factories (over SSL) for the RMIConnectorServer over JRMP</a></span></dt></dl></dd><dt><span class="section"><a href="ch03s06.html">MX4J's JSR 160 JMXConnectors and JMXConnectorServers</a></span></dt><dd><dl><dt><span class="section"><a href="ch03s06.html#N105F7">The SOAP JSR 160 connector</a></span></dt><dt><span class="section"><a href="ch03s06.html#N10657">The HESSIAN and BURLAP JSR 160 connectors</a></span></dt></dl></dd><dt><span class="section"><a href="ch03s07.html">Using HTTP-based connectors over HTTPS</a></span></dt><dd><dl><dt><span class="section"><a href="ch03s07.html#N106A3">Configuration of the web container</a></span></dt><dt><span class="section"><a href="ch03s07.html#N106C4">Configuration of the keystore</a></span></dt><dt><span class="section"><a href="ch03s07.html#N106DE">Code examples</a></span></dt></dl></dd><dt><span class="section"><a href="ch03s08.html">Porting old MX4J remoting code to JSR 160</a></span></dt><dd><dl><dt><span class="section"><a href="ch03s08.html#N106F3">Introduction</a></span></dt><dt><span class="section"><a href="ch03s08.html#N106FA">Porting Examples</a></span></dt></dl></dd><dt><span class="section"><a href="ch03s09.html">MX4J Remote Tools and Utilities</a></span></dt><dd><dl><dt><span class="section"><a href="ch03s09.html#N10756">Remote MBean Proxying</a></span></dt></dl></dd></dl></div><div class="section"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="N10324"></a>What is JSR 160 ?</h2></div></div></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a name="N10327"></a>Introduction</h3></div></div></div><p>
         The Java Management Extension (JMX) API is defined and under maintenance release of the Java Specification
         Request (JSR) number 3.
         <br>
         JMX defines the API for management of Java applications, and those API are local to the application: remote
         clients that would like to connect to a JMX-enabled remote application and manage or monitor it using JMX
         could not do it in a standard way.
         <br>
         The MX4J project, the JMX reference implementation itself, and other JMX implementations provide custom
         connectors, mostly RMI-based and HTTP-based, but those are not interoperable.
         <br>
      </p><p>
         To fill this gap,
         <a class="ulink" href="http://www.jcp.org/en/jsr/detail?id=160" target="_top">JSR 160</a> extends JSR 3 by providing a standard
         API to connect to remote JMX-enabled applications.
         <br>
         Currently, JSR 160 has defined a mandatory connector based on RMI (that supports both RMI/JRMP and RMI/IIOP),
         and an optional one based on sockets and Java serialization (JMXMP).
      </p><p>
         JSR 160 thus provides a standard way to connect to remote JMX-enabled applications using RMI; it is possible
         to use MX4J JSR 160 implementation on client side, and have a JMX Remote Reference Implementation on server
         side, or viceversa.
         This allows the creation of Management Consoles based on Swing, for example, that will be able to interoperate
         no matter which JMX implementation is used.
      </p></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a name="N1033C"></a>MX4J's JSR 160 implementation</h3></div></div></div><p>
         MX4J implements JSR 160. This means that MX4J ships the standard JSR 160 API, located in package
         <code class="classname">javax.management.remote</code>, and the mandatory providers defined by the specification,
         namely the
         <span class="emphasis"><em>rmi</em></span> and
         <span class="emphasis"><em>iiop</em></span> providers, located in package
         <code class="classname">javax.management.remote.rmi</code>.
         <br>
         MX4J does not implement yet the optional
         <span class="emphasis"><em>jmxmp</em></span> provider defined by the JSR 160 specification.
         <br>
         MX4J provides other four providers, not specified by the JSR 160 specification. This means that they will work
         only if MX4J runs at both client and server side. These four providers are the
         <span class="emphasis"><em>soap</em></span>,
         <span class="emphasis"><em>local</em></span>,
         <span class="emphasis"><em>hessian</em></span> and
         <span class="emphasis"><em>burlap</em></span> providers.
      </p><p>
         To sum up, MX4J allows you to specify JMXServiceURLs (see next section) of the following kind:
         </p><div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem">service:jmx:rmi://host</li><li class="listitem">service:jmx:iiop://host</li><li class="listitem">service:jmx:soap://host</li><li class="listitem">service:jmx:local://host</li><li class="listitem">service:jmx:hessian://host</li><li class="listitem">service:jmx:burlap://host</li></ul></div><p>
      </p></div></div></div><div class="navfooter"><hr><table summary="Navigation footer" width="100%"><tr><td align="left" width="40%"><a accesskey="p" href="ch02s04.html">Prev</a>&nbsp;</td><td align="center" width="20%">&nbsp;</td><td align="right" width="40%">&nbsp;<a accesskey="n" href="ch03s02.html">Next</a></td></tr><tr><td valign="top" align="left" width="40%">The
      <code class="classname">javax.management.MBeanServerInvocationHandler</code> class
   &nbsp;</td><td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td><td valign="top" align="right" width="40%">&nbsp;How to use JSR 160</td></tr></table></div></body></html>