Bean

Bean

Description: The Bean Component is for invoking Java beans from Camel.
Scheme: bean
Syntax: bean:beanName
Maven: org.apache.camel/camel-core/2.16.1

Endpoint for the bean component.

Name Kind Group Required Default Type Enum Description
beanName path producer true java.lang.String Sets the name of the bean to invoke
method parameter producer java.lang.String Sets the name of the method to invoke on the bean
cache parameter advanced boolean If enabled, Camel will cache the result of the first Registry look-up. Cache can be enabled if the bean in the Registry is defined as a singleton scope.
exchangePattern parameter advanced InOnly org.apache.camel.ExchangePattern InOnly
RobustInOnly
InOut
InOptionalOut
OutOnly
RobustOutOnly
OutIn
OutOptionalIn
Sets the default exchange pattern when creating an exchange.
multiParameterArray parameter advanced boolean How to treat the parameters which are passed from the message body; if it is true, the message body should be an array of parameters.

Note: This option is used internally by Camel, and is not intended for end users to use. @deprecated this option is used internally by Camel, and is not intended for end users to use

parameters parameter advanced java.util.Map Used for configuring additional properties on the bean
synchronous parameter advanced false boolean Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported). @param synchronous true to enforce synchronous processing