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:
- It looks up the bean in the registry.
- It selects the method to invoke the bean.
- It binds to the parameters of the selected method.
- It actually invokes the method.
- It possibly handles any invocation errors that occurred.
- It sets the method's reply as the body of the output message.