Java Reference
In-Depth Information
can subscribe to
JMS
messages, you can listen to the activity of an operating
JMS
application. These messages can provide a management application with statisti-
cal or health information about the
JMS
application.
More importantly, you can use MBeans to give management applications
direct access to the
JMS
message bus. Using MBeans, a management applica-
tion can send and receive
JMS
messages. With MBeans providing message
capabilities (sending and receiving), you can debug portions of your
JMS
appli-
cations; in addition, MBeans can become the drivers for certain workflows
within the application.
MBeans can also expose the methods of an object that are usually invoked in
response to
JMS
messages. By exposing these operations, you give a manage-
ment system the ability to directly invoke portions of the application without the
need to send a message. This technique can be useful for debugging, application
configuration, or handling special cases within the application.
The next chapter discusses another
J2EE
technology: Enterprise Java-
Beans. In chapter 14, we describe why and how to integrate MBeans into your
EJB
applications.