Message Construction EIPs

These EIPs are responsible for creating messages in response to other messages.

The Event Message EIP

The Event Message EIP describes how to use messaging to transmit events from one application to another.

Camel supports this EIP by the use of the Message Exchange Pattern in the exchange. When defined as InOnly, it means that we deal with a one way event message.

So, basically, the Event Message EIP means one directional messages.

The first endpoint of the route defines the expected Exchange pattern, but, at any point in the route, you can force the Exchange pattern to InOnly to make it act as an Event Message EIP.

For this, you have to use the inOnly notation:

<route> <from uri="direct:start"/> <inOnly uri="bean:myBean"/> ...

Get Mastering Apache Camel now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.