Name

Bean — Binds a bean to Camel message exchanges

Usage

The Bean pattern can be placed anywhere in the body of a route.

Properties

Table 7 describes the properties you can specify using the properties editor.

Table 7. Bean Properties

NameDescription
Bean TypeSpecifies the type of the bean.
Inherit Error HandlerSpecifies whether the node should use the error handler configured for the route. The default is Disabled.
MethodSpecifies the method to invoke on the bean. If no value is provided Apache Camel will attempt to determine the method to invoke. If no method can be determined a AmbiguousMethodCallException exception is thrown.
Bean NameSpecifies the name of the bean, from the Apache Camel configuration file, that will process the message. This property corresponds to the ref attribute in the XML source.
IdSpecifies a unique identifier for the endpoint. The Id can be used to refer to the endpoint in the Camel XML file.
DescriptionSpecifies a text description for the node. This description is included in the generated XML file, but it is informational only. It is not used by Apache Camel.