The Java Management Extensions (JMX) Remote API Specification describes how you can advertise and find JMX API agents by using existing discovery and lookup infrastructures. The specification does not define any discovery and lookup APIs specific to JMX technology.
This chapter provides a brief outline of existing discovery and lookup infrastructures that you can use with JMX technology, in the following section:
See the “References” section of the Java Management Extensions Remote API 1.0 Specification for additional information about discovery and lookup infrastructures.
JMX agents and JMX clients can use lookup services. A single Java VM can contain many JMX agents and/or JMX clients.
The Java Management Extensions (JMX) Technology Tutorial demonstrates how to use lookup services to advertise and find JMX agents. The procedure is similar for all three infrastructures. The main difference between them is that in SLP and JNDI, the agent registers addresses with the lookup service, whereas when using the Jini network technology, the JMX agent registers a JMX connector stub with the lookup service.
Note:
The use of existing discovery and lookup services is optional. Alternatively, you can encode the addresses of your JMX API agents in the form of URLs, and communicate these URLs to the manager.
Using the Service Location Protocol (SLP)
The Service Location Protocol (SLP) provides a framework that allows networking applications to discover the existence, ___location, and configuration of networked services in enterprise networks.
The following steps summarize the procedure defined in the JMX Remote API specification for using the SLP lookup service to advertise and find JMX agents:
The JMX Remote API Specification defines URL schemes which are compliant with the SLP protocol. See the Java Management Extensions (JMX) Remote API Specification. The Specification also defines mandatory and optional SLP lookup attributes that are provided at registration time.
Using the Jini Network Technology
The Jini Network Technology is an open software architecture that enables developers to create services that are adaptable to changes in the network. The Jini specification offers a standard lookup service. A Jini lookup service that is running can be discovered with API call.
The following steps summarize the procedure defined in the JMX Remote API specification for using the Jini lookup service to advertise and find JMX agents:
The JMX Remote API specification defines bindings with Jini technology based entries. See the Java Management Extensions (JMX) Remote API Specification. The specification also defines mandatory and optional entries to specify when registering an agent connector.
Using the Java Naming and Directory Interface (JNDI) API With an LDAP Backend
The Java Naming and Directory Interface (JNDI) API is a standard extension to the Java platform. It provides Java technology-enabled applications with a unified interface to multiple naming and directory services.
The JMX Remote API specification describes how an LDAP server is used to store and retrieve information about JMX connectors that are exposed by JMX agents.
The following steps summarize the procedure defined in the JMX Remote API specification for using the JNDI lookup service:
The JMX Remote API defines an LDAP schema for registering addresses and explains how a client can discover a registered agent. See the JMX 1.4 Specification for details. The specification also defines a lease mechanism.