Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3849ADEA5 for ; Fri, 24 May 2013 12:43:47 +0000 (UTC) Received: (qmail 99120 invoked by uid 500); 24 May 2013 12:43:45 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 98987 invoked by uid 500); 24 May 2013 12:43:45 -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 98970 invoked by uid 99); 24 May 2013 12:43:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 May 2013 12:43:44 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of claus.ibsen@gmail.com designates 209.85.223.181 as permitted sender) Received: from [209.85.223.181] (HELO mail-ie0-f181.google.com) (209.85.223.181) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 May 2013 12:43:40 +0000 Received: by mail-ie0-f181.google.com with SMTP id x12so11848943ief.40 for ; Fri, 24 May 2013 05:43:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=R1Npucl/MHru6WvZ0n8tlem3/VxQoVkDMZWWbjKiku8=; b=bcKwjTvVd3WCSnSq1v/L/+O+h1EWsrwze4oOawGQPfX4nUher0XqDq+bY51e5iPeGs Iyrx6+arjKpYtKxKvBZIP2BzseDOjwe52v3ZUIYd0QkY0DeaseVdxWpQI1SpCz+JgHVc 8n7fQnqU9gvLYIUVo+w3BvupzjYcNtK0ixN92LB9vlKYO4UNW1F0dflZrSaL4pJts38L gYblWDlWOgVLCNsS65O7J5Sm++oDKw71qUbf3bXt0LcN3FB7+DjzJMEO09+G2J31lWwS FPU4Bk9OUEpsVzoFrsjKfWibZnjJqkT2pPHIEupuk+usd7SCwFILR95mMDyxPxM8V+AV V0TA== X-Received: by 10.50.114.104 with SMTP id jf8mr6556457igb.77.1369399400444; Fri, 24 May 2013 05:43:20 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.60.103 with HTTP; Fri, 24 May 2013 05:43:00 -0700 (PDT) In-Reply-To: <1369395104915-5733083.post@n5.nabble.com> References: <1369332920649-5733041.post@n5.nabble.com> <1369395104915-5733083.post@n5.nabble.com> From: Claus Ibsen Date: Fri, 24 May 2013 14:43:00 +0200 Message-ID: Subject: Re: Why doesn't the stub component throw exceptions in tests To: "users@camel.apache.org" Content-Type: multipart/alternative; boundary=047d7b3a9b26d1bbd004dd762413 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b3a9b26d1bbd004dd762413 Content-Type: text/plain; charset=ISO-8859-1 Hi Study the EIPs and components again. And the difference between a direct component vs a stub/seda (eg sync vs async) and the InOnly vs InOut. And the send vs request methods on the producer template. They all have an influence on what happens. Also for testing purpose you may wanna take a look at http://camel.apache.org/testing For example about the notify builder On Fri, May 24, 2013 at 1:31 PM, dancerjohn wrote: > > I disagree... the javadoc for ProducerTemplate.sendBody() states "Notice: > that if the processing of the exchange failed with an Exception it is > thrown > from this method as a CamelExecutionException with the caused exception > wrapped.". So if an exception is thrown during processing sendBody should > throw a CamelExecutionException. > > The point I am making is that when the channel is a direct channel this > DOES > happen. However, everything else being the same if the channel is a stub > this DOES NOT happen. Therefore there is a difference in the components > between direct and stub in this regard. This seems surprising. > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Why-doesn-t-the-stub-component-throw-exceptions-in-tests-tp5733041p5733083.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- Claus Ibsen ----------------- www.camelone.org: The open source integration conference. Red Hat, Inc. FuseSource is now part of Red Hat Email: cibsen@redhat.com Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen --047d7b3a9b26d1bbd004dd762413--