camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gauthamhs <gautha...@gmail.com>
Subject Is there a way I can autowire a bean in my route without using the .bean keyword in Camel?
Date Thu, 21 May 2015 18:13:14 GMT
Lets say for example, I have the following route:          

           from(.....)
          .choice()
          .when(condition1)
          .bean(Class1.class,"method1")
          .when(condition2)
           .bean(Class1.class,"method2")
          .otherwise()
          .bean(Class1.class,"method3")
          .end();

Is there a way I can autowire Class1 to use all the methods instead of using
the .bean function in camel. If you know any other efficient method. Please
do let me know. Hope to hear from you soon.



--
View this message in context: http://camel.465427.n5.nabble.com/Is-there-a-way-I-can-autowire-a-bean-in-my-route-without-using-the-bean-keyword-in-Camel-tp5767397.html
Sent from the Camel Development mailing list archive at Nabble.com.

Mime
View raw message