DolphinJava DolphinJava - 1 month ago 14x
Java Question

Replacement of Deprecated beanRef() in Camel v2.16.0

We are upgrading from Camel v2.13 to v2.16 and discovered that beanRef() has been marked as deprecated. What is the replacement/alternative recommended by Apache Camel. I was unable to find anything useful on Camel v2.16.0 Documentation site.
Even updated examples are not yet available.

beanRef() is syntax within Java DSL Bean Language of Camel.


I assume that you are talking about the ProcessorDefinition class.

The javadoc comments say to use the bean(...) methods as replacements for the beanRef(...) methods.

Source reference: