Chapter 14. Monitoring and management
This chapter covers
- Tracking message history
- Adding wire taps to message channels
- Using Spring Integration’s JMX support
- Invoking operations via the control bus
When it comes to monitoring message-driven applications, meaningful statistics can be gathered from two perspectives: (1) component-centric data can be acquired by monitoring the general message traffic at the level of a message channel or message endpoint; (2) message-centric data can be acquired by recording every message channel or message endpoint that a particular message passes. The former is useful for detecting trends in throughput. The latter is useful for tracking the detailed history of a given message even though it traverses a pipeline of loosely coupled components, possibly spanning many different threads of control along the way. In this chapter, we discuss both of these perspectives. We also look at Spring Integration’s support for the Wire Tap and Control Bus patterns as described in Enterprise Integration Patterns (Hohpe and Woolf, Addison-Wesley, 2003).