Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

When using a proxy Camel will send the message payload as a org.apache.camel.component.bean.BeanInvocation object (*Camel 2.15 or older) which holds the details of which method was invoked and what the argument was. From Camel 2.16 onwards Camel parameter binding is enabled by default, which will use binding information from the method signature parameters to bind to the Exchange/Message with the following annotations

AnnotationParameter TypeParameter binds Binds to
@BodyObjectBinds the parameter to the message body
@Header(name)ObjectBinds the parameter to the message header with the given name
@HeadersMapBinds the parameter to the message headers. The parameter is expected to be of java.util.Map type.
@ExchangeProperty(name)ObjectBinds the parameter to the exchange property with the given name

...