from().filter().expression() does not seem to exist. Only expression(Expression)
----- Original message ----- From: "James Strachan" <[EMAIL PROTECTED]> To: [email protected] Date: Tue, 21 Oct 2008 12:44:44 +0100 Subject: Re: Non registry beans 2008/10/21 Martin Gilday <[EMAIL PROTECTED]>: > 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"); if you close the parens from("activemq:OrdersTopic").filter().expression(). then your IDE should smart complete the available expressions. The actual expression you're looking for is methodCall() which uses a bean as an expression from("activemq:OrdersTopic").filter().expression().methodCall(MyBean.class, "isGoldCustomer").to... > I want to use non registry beans as I am writing it inside a non-Spring > managed test. It should work fine in plain Java with JNDI as a registry, with Spring or with Guice -- James ------- http://macstrac.blogspot.com/ Open Source Integration http://fusesource.com/
