camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Gilday" <martin.li...@imap.cc>
Subject Re: Non registry beans
Date Tue, 21 Oct 2008 11:59:57 GMT
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" <james.strachan@gmail.com>
To: camel-user@activemq.apache.org
Date: Tue, 21 Oct 2008 12:53:08 +0100
Subject: Re: Non registry beans

2008/10/21 Martin Gilday <martin.lists@imap.cc>:
> 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/

Mime
View raw message