Let's 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 that autwire Class1 can use all methods instead of using the .bean function on a camel. If you know any other effective method. Please let me know. Hope to hear from you soon.
Thanks Gautham
source
share