from("activemq:my.queue").
splitter(xpath("/invoice/lineItem")).
to("file://some/directory");
Pretty neat eh. Use any language you like for the expression such as XQuery, SQL, Groovy, Ruby etc.
It sure beats programming in XML :)
Random ramblings on Open Source, integration and other malarkey
from("activemq:my.queue").
splitter(xpath("/invoice/lineItem")).
to("file://some/directory");
2 comments:
Would be fun without parentheses and semi-colons in Groovy, and with additional magic to avoid chaining all those method calls:
from "activemq:my.queue"
splitter xpath("/invoice/lineItem")
to "file://some/directory"
Definitely! :). We really should get around to doing a Groovy DSL for Camel...
Post a Comment