DolphinJava DolphinJava - 1 year ago 168
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.

Answer Source

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:

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download