As with Apache Camel 2.16.3 in 2015, all Java DSL.beanRef routing methods are outdated .
Unfortunately, even in 2017, the official Camel documentation still says it uses legacy .beanRef methods. Although the API says it uses .bean (...) methods instead, all of these methods create a new version of the bean or expect the existing one to be passed.
My question is: how to use these methods with the Spring framework to pass to the Spring -managed bean in the Java DSL route and what is Camel's official recommendation?
This similar question was asked in 2015, but the answer is not relevant to my specific question regarding managed beans.
source
share