Book Image

Spring Integration Essentials

By : CHANDAN K PANDEY
Book Image

Spring Integration Essentials

By: CHANDAN K PANDEY

Overview of this book

This book is intended for developers who are either already involved with enterprise integration or planning to venture into the domain. Basic knowledge of Java and Spring is expected. For newer users, this book can be used to understand an integration scenario, what the challenges are, and how Spring Integration can be used to solve it. Prior experience of Spring Integration is not expected as this book will walk you through all the code examples.
Table of Contents (12 chapters)
11
Index

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...