Java Reference
In-Depth Information
MBeans can be combined with EJB s two ways. First, the MBean exposes the
business methods of an EJB as its management interface. JMX users can now
invoke these methods without going directly through the EJB application. In
addition, operations that serve analysis or management purposes can be shown
exclusively through the MBean to separate the management capabilities from
the business application. Second, EJB s can use MBeans' notification capability to
inform other processes of application errors, events, or information.
This chapter showed you how to integrate an MBean into an EJB application
without the EJB having any knowledge of the JMX environment accessing it. In
addition, we explained how to create an EJB that instantiates its own MBean and
registers it on a local MBean server for management. Both of these integration
methods have their advantages, and you should be able to use them in your
future EJB development to provide management and monitoring capabilities in
enterprise applications.
Search WWH ::




Custom Search