Book Image

Mastering Apache Camel

By : Bilgin Ismet Ibryam, Jean Baptiste Onofre, Jean-Baptiste Onofré
5 (1)
Book Image

Mastering Apache Camel

5 (1)
By: Bilgin Ismet Ibryam, Jean Baptiste Onofre, Jean-Baptiste Onofré

Overview of this book

Table of Contents (15 chapters)
Mastering Apache Camel
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Messaging systems EIPs


Messaging systems EIPs gather all patterns related to the delivery of messages, which are moving along in the routing logic.

Message Channel

The Message Channel EIP is the generic name for the communication between endpoints in a Camel route.

In the examples of the previous chapters, we used endpoints with the following syntax:

component:option?key=value&key=value

For instance, we can have a route as follows:

<from uri="timer:fire?period=5000"/>
<to uri="log:myLog"/>

This route uses two endpoints (timer and log). Camel implicitly creates a Message Channel between the two endpoints.

The purpose is to decouple the endpoint producing the message from the application consuming the message.

This EIP is actually used in basically all routes in an implicit way (you don't have to use a special notation to use Message Channel, it's in Camel).

Message

Another implicit EIP in Camel is the Message EIP.

This EIP is basically implemented by the Camel message interface and wrapped...