I am looking at the section "Non registry beans" on the page
http://activemq.apache.org/camel/bean-language.html
I am using 1.5-SNAPSHOT
This states to try:
from("activemq:OrdersTopic").filter().expression(bean(MyBean.class,
"isGoldCustomer")).to("activemq:BigSpendersQueue");
However this does not compile. bean is not available inside expression.
I would like to alter this to use bean language inside a Choice but the
same problem exists. What is the correct way to write this route?
I want to use non registry beans as I am writing it inside a non-Spring
managed test.
Thanks,
Martin