Book Image

Service Oriented Java Business Integration

Book Image

Service Oriented Java Business Integration

Overview of this book

Table of Contents (23 chapters)
Service Oriented Java Business Integration
Credits
About the Author
Acknowledgement
About the Reviewers
Preface

EAI Patterns—Code and Run Samples in ESB


The main EAI pattern components supported by ServiceMix are listed as follows:

  • Content-based router

  • Content enricher

  • XPath splitter

  • Message filter

  • Split aggregator

  • Pipeline

  • Wiretap

  • Static recipient list

  • Static routing slip

Let us now configure EAI pattern components in the ServiceMix and run the samples. All the samples are arranged in subfolders under ch15\. Make sure that you edit examples.PROPERTIES and change the paths there to match your development environment to build the samples.

Content-based Router

A content-based router consumes a message from one message channel. Based on a set of conditions on the headers or the body content of the message, it republishes the message on to a different message channel.

Notation

Explanation

The message router inspects the contents of the message and routes the message to multiple channels. While doing so, the router will not alter the message contents. While inspecting, the router can look into a field in the message...