Bean — Binds a bean to Camel message exchanges
Table 6 describes the properties you can specify using the properties editor.
Table 6. Bean Properties
| Name | Description |
|---|---|
| Bean Type | Specifies the type of the bean. |
| Cache | Specifies whether Apache Camel will cache the first Registry lookup. Default
is NOTE: This property can be enabled only if the bean in the Registry is defined with a singleton scope. |
| Description | Specifies 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. |
| Id | Specifies a unique identifier for the endpoint. The tooling automatically generates an id for a node when it is created, but you can remove that id or replace it with your own. The Camel debugger requires all nodes with a breakpoint set to have a unique id. You can use the id to refer to endpoints in your Camel XML file. |
| Method | Specifies 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. |
| Multi Parameter Array | Specifies whether to treat the parameters passed in the In message body as an
array of parameters. Default is
disabled. |
| Ref | Sets a reference to a bean to use. |
For more information, see Bean.