I am trying to do something like 

when (_.bean("myBean")) {

}

"myBean" has an (Exchange => Boolean) method, but the bean binding isn't
finding it. My bean is injected with database resources and such, thus I
can't really use a simpler scala-style predicate. It also has several other
methods which I am referencing later in my routes using
to("bean:myBean?method=foo").

Unfortunately, the scala DSL does not have a bean(ref, method) version to
work with. I am trying to avoid injecting my bean directly into my route
class, but perhaps that is the best solution in this case. Any thoughts?

--
View this message in context: 
http://camel.465427.n5.nabble.com/Scala-DSL-Calling-Spring-beans-as-predicates-tp5068888p5068888.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to