camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: Content based router
Date Fri, 10 Aug 2007 16:03:06 GMT
On 8/10/07, Erik Allais <erik.allais@altervisions.com> wrote:
>
> How can i create this composite router? with the processor?

Yeah...

from("foo").choice().
  when(xpath("/foo/bar")).process(someProcesor).to("seda:a")
  otherwise().to("seda:b");

notice how we can mix and match arbitrary processors or endpoints
inside the route.
-- 
James
-------
http://macstrac.blogspot.com/

Mime
View raw message