Java Reference
In-Depth Information
management applications or other MBeans. Users can receive notifications as a
way of being informed of critical events or requests for attention.
For instance, the bicycle shop application might have the ability to notice
when transactions are in an error state. For these transactions, the application
could be able to push an event to its MBean, which can emit notifications to
interested clients (such as a pager or email address).
As this topic will make evident, JMX is the ideal environment for applications
to expose their management and configuration API s.
1.4 Using JMX as an application architecture
The JMX agent layer is ideal for building applications. The MBean server can be
used as a backbone for an application component such as a data layer, a logging
component, or a transaction manager. By defining application components with
MBeans, you can insulate other parts of your application from the implementa-
tion details of each component. Figure 1.6 illustrates this concept.
By using JMX in this manner and by defining stable interfaces to your compo-
nent MBeans, you can create an application that can easily swap out component
Figure 1.6 An MBean server acting as a structure around which to build an
application. The MBean server contains the various application components as
MBeans, shielding the application from component implementation changes.
Search WWH ::




Custom Search