Java Reference
In-Depth Information
Figure 8.1
The agent-level components
In addition, management applications can use connectors in order to reach the
MBean server with remote clients. For example, Sun provides a Remote Method
Invocation ( RMI ) connector for remote access over Java RMI . Connectors are
more useful when you're developing a management application. As mentioned,
connectors provide you with a client portion, which enables seemingly direct
calls into a JMX agent's MBean server.
Both protocol adapters and connectors are important to this chapter because
each should provide a direct mapping to the methods of the MBeanServer inter-
face. One way or another, you should be exposed to these methods. You will
learn more about protocol adapters and connectors in chapter 9. Now it is time
to turn our focus to the MBean server.
8.2 T he MBeanServer interface
As previously mentioned, the MBean server acts a registry for MBeans. In addi-
tion to being the repository for MBeans, an MBean server provides a set of ser-
vices for manipulating registered MBeans. For example, the MBean server gives
you access to MBean attributes and operations. In addition, the MBean server
provides more advanced services such as querying (discussed later in section 8.3)
and MBean relationships (covered in chapter 10).
Search WWH ::




Custom Search