I think there is only method() insted of methodCall() which differs from
Java DSL to Spring DSL.
What I think I really need is
from("").choice().when().method(null, null).to("").otherwise().to("");
However looking at the example I posted first (which doesn't compile) it
says you should be able to put the name of a class rather than a bean
name
from("activemq:OrdersTopic").filter().expression(bean(MyBean.class,
"isGoldCustomer")).to("activemq:BigSpendersQueue");
Is this still under development or should it be in 1.5-SNAPSHOT?
The closest I have got is:
from("direct:test").choice().when().expression(BeanLanguage.bean(TimingExpressionBean.class,
"isReady")).to("mock:now").otherwise().to("mock:later");
Which throws a NoSuchLanguageException.
----- Original message -----
From: "James Strachan" <[EMAIL PROTECTED]>
To: [email protected]
Date: Tue, 21 Oct 2008 12:53:08 +0100
Subject: Re: Non registry beans
2008/10/21 Martin Gilday <[EMAIL PROTECTED]>:
> from().filter().expression() does not seem to exist. Only
> expression(Expression)
Sorry I meant
from().filter().
which should let you pick
from().filter().methodCall(...
--
James
-------
http://macstrac.blogspot.com/
Open Source Integration
http://fusesource.com/