Monitoring and management
There are multiple ways of monitoring and managing operations; for example, the most common way is to use Java's JMX support, another option is to invoke commands remotely, or monitor and log events as they occur—let's cover the most commonly used method.
JMX support
JMX, which is short for Java Management Extensions, does not need an introduction—it's a standard way for remote monitoring of applications. Any application can provide implementation of MBeans and then they can be queried to get exposed management information. Spring Integration provides a standard component, which can be used to monitor channels, adapters, and other available components. Standard JMX can be extended to get more specific information.
Prerequisites
Before we can use JMX support from Spring Integration, we need to add namespace declarations and maven dependencies:
NameSpace support: This can be added using the following code snippet:
<beans xmlns="http://www.springframework.org/schema...