Chapter 6. Interlude: Simple Messaging

Introduction

So far, we’ve introduced a lot of patterns. We’ve seen the basic messaging components, such as Message Channel (60), Message (66), and Message Endpoint (95). We’ve also seen detailed patterns for messaging channels and for message construction. So, how do all of these patterns fit together? How does a developer integrate applications using these patterns? What does the code look like, and how does it work?

This is the chapter where we really get to see the code. We have two examples:

Request-Reply—Demonstrates (in Java and .NET/C#) how to use messaging to send a request message and respond with a reply message.

Publish-Subscribe—Explores how to use a JMS Topic to implement the Observer

Get Enterprise Integration Patterns: Designing, Building, and Deploying Messaging Solutions now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.