Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 89505 invoked from network); 22 Mar 2010 09:31:55 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 22 Mar 2010 09:31:55 -0000 Received: (qmail 13669 invoked by uid 500); 22 Mar 2010 09:31:55 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 13065 invoked by uid 500); 22 Mar 2010 09:31:53 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 13057 invoked by uid 99); 22 Mar 2010 09:31:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Mar 2010 09:31:52 +0000 X-ASF-Spam-Status: No, hits=-1.2 required=10.0 tests=AWL,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of claus.ibsen@gmail.com designates 209.85.218.228 as permitted sender) Received: from [209.85.218.228] (HELO mail-bw0-f228.google.com) (209.85.218.228) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Mar 2010 09:31:47 +0000 Received: by bwz28 with SMTP id 28so5661641bwz.34 for ; Mon, 22 Mar 2010 02:31:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=VRH+Dg5+mxD9H9qKUK6kmJWfi8bG5bs79P9tiaMMwIg=; b=jj358Z4Lt3CSQH6iYety5Wl7CpX9FHJBHaVlhxWzgj5yDd8hwHg/P8v39BKsh5Zyen nzhu2Vp3R6N5vEjOCIMSMPGNOyIfzlcwWwRSmNt+C+MXLFanlBsBD53wM1p0bFwhY97i cinjXdK06bje+KNy+sl6PciVLnSk57DE1Tzq4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=tCL/AD/ZXrC7qCXFbC0efJMQNpPp47MoJ3A1b4zAPBhEzuCqobW8Y8lt2LLcef6VQv D0sASfIU8dbW/HllNemjvw+qM9MbF09pK+IdtvrnH1Hn6tUWHQm+pF+ADkZUUXgRZLYM U8LztZQofHw5AZeHIEZgZxfIZamcDYM7MiWts= MIME-Version: 1.0 Received: by 10.204.156.217 with SMTP id y25mr4216407bkw.2.1269250286199; Mon, 22 Mar 2010 02:31:26 -0700 (PDT) In-Reply-To: <27983922.post@talk.nabble.com> References: <27983922.post@talk.nabble.com> From: Claus Ibsen Date: Mon, 22 Mar 2010 10:31:06 +0100 Message-ID: <5380c69c1003220231k28015ddew2a845021800dfec6@mail.gmail.com> Subject: Re: RecipientList + Choice no longer work together in Camel 2.2.0? To: users@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Mon, Mar 22, 2010 at 10:27 AM, Drasil wrote: > > Hello, > > I have the following construct in my custom RouteBuilder: > > from("foo") > =A0.choice() > =A0 =A0.when( condition1 ) > =A0 =A0 =A0.setFaultBody( ... ) > =A0 =A0.when( condition2 ) > =A0 =A0 =A0.recipientList( ... ) > =A0 =A0.otherwise() > =A0 =A0 =A0.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 typ= e > 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 Typ= e. 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-Cho= ice-no-longer-work-together-in-Camel-2.2.0--tp27983922p27983922.html > Sent from the Camel - Users mailing list archive at Nabble.com. > --=20 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