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

Service activator


Camel acts as a service activator, using BeanProcessor, which sits between the caller and the actual bean.

The BeanProcessor is a special processor that converts the inbound exchange to a method invocation on a bean (POJO).

The BeanProcessor performs the following steps when called:

  1. It looks up the bean in the registry.

  2. It selects the method to invoke the bean.

  3. It binds to the parameters of the selected method.

  4. It actually invokes the method.

  5. It possibly handles any invocation errors that occurred.

  6. It sets the method's reply as the body of the output message.