Re: Choice DSL when checking for existence of a header

2014-07-02 Thread Claus Ibsen
Hi Check this FAQ http://camel.apache.org/why-can-i-not-use-when-or-otherwise-in-a-java-camel-route.html On Wed, Jul 2, 2014 at 1:09 AM, Matt Raible wrote: > I'm trying to do the following with a the Java DSL in a route: > > .choice() > .when(header("maxRows").isNotNull()) >

Choice DSL when checking for existence of a header

2014-07-01 Thread Matt Raible
I'm trying to do the following with a the Java DSL in a route: .choice() .when(header("maxRows").isNotNull()) .recipientList(simple("sql:{{sql.claimLookupWithMaxRows}}")).delimiter("false") .otherwise() .recipientList(simple("sql:{{sql.claimLookup}