On Mon, Mar 22, 2010 at 10:27 AM, Drasil <pavel.dra...@gmail.com> wrote: > > Hello, > > I have the following construct in my custom RouteBuilder: > > from("foo") > .choice() > .when( condition1 ) > .setFaultBody( ... ) > .when( condition2 ) > .recipientList( ... ) > .otherwise() > .setFaultBody( ... ); > > > It worked in Camel versions up to 2.1.0. But when I tried to upgrade to > Camel 2.2.0 I realized that the recipientList() method has its return type > changed from "Type" to "RecipientListDefinition" and that the > above-mentioned code is no longer compilable. I tried to find a solution, > but did not succeed. I even did not find anything about this > backward-incompatible API change in 2.2.0 version release notes. Is there > any way to achieve the indicated behavior in Camel 2.2.0? >
I recon you can try adding an end() after recipientList to get back the Type. Java generics is not really that well for doing DSL like language. > Thanks for any advice, Pavel > -- > View this message in context: > http://old.nabble.com/RecipientList-%2B-Choice-no-longer-work-together-in-Camel-2.2.0--tp27983922p27983922.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- Claus Ibsen Apache Camel Committer Author of Camel in Action: http://www.manning.com/ibsen/ Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus