camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <>
Subject new bean expression language
Date Fri, 16 Nov 2007 16:24:34 GMT
An issue some folks have hit has been how to write complex expressions
and predicates for non-XML payloads of messages without adding any new
dependency on some expression language like Groovy, EL, OGNL, Ruby

Well there's always Java :)

Folks could write a new Expression/Predicate class; but that can often
be a tad noisy when used in the DSL (and it doesn't translate too well
to describing routing rules in XML); so to simplify that I've
implemented a simple Bean Language so you can just refer to bean
methods as an expression or predicate...

it also helps show some of the power of the Bean Integration annotations

The nice thing about this approach is if you write an expression in
Java code; your code can avoid the use of Camel APIs; namely to be
just business logic style code using whatever classes ou like.

The JIRA for this feature is here btw

As usual, feedback always appreciated

Open Source SOA

View raw message