Messaging Gateway

Camel supports the Messaging Gateway from the EIP patterns book.

How do you encapsulate access to the messaging system from the rest of the application?

image

Use a Messaging Gateway, a class than wraps messaging-specific method calls and exposes domain-specific methods to the application.

Camel has several endpoint components that support the Messaging Gateway from the EIP patterns. Components like Bean and CXF provide a way to bind a Java interface to the message exchange.

Another approach is to use @Produce annotations which you can read about in POJO Producing which also can be used as a Messaging Gateway EIP solution.