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 4741D1160A for ; Thu, 21 Aug 2014 06:07:50 +0000 (UTC) Received: (qmail 25380 invoked by uid 500); 21 Aug 2014 06:07:49 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 25336 invoked by uid 500); 21 Aug 2014 06:07:49 -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 25324 invoked by uid 99); 21 Aug 2014 06:07:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Aug 2014 06:07:49 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of claus.ibsen@gmail.com designates 209.85.223.169 as permitted sender) Received: from [209.85.223.169] (HELO mail-ie0-f169.google.com) (209.85.223.169) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Aug 2014 06:07:24 +0000 Received: by mail-ie0-f169.google.com with SMTP id rd18so4223560iec.28 for ; Wed, 20 Aug 2014 23:07:23 -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=/46Hd5NrSh1mgK9cCaPUvwLKZi04QzPKUr5MSKxvQBA=; b=FeQKyG2BsUyrLY4H/K1M5Y5dMjcsln/5tJgwwcTjqDt5Ew1rMmfhGGoXByKb1Admj+ v/voPFt70Iutt9HLGk6AW9E4ZKNiwmwayTNHB30VMAHgQkUdiwBGpi2FO+S2wwR7SHnp RLCgnMfftIL4gS6J65hZRvRKl1hprNIaKNNegjYJ+G4P/xsRurqTf55buBFmN7JcuRVk YE6KnlSziFtIYZKZ6baojgPbV3EB07UgLcedMTKYtEKgAR7pnoFvxLYAdEEhWPhrUfS0 PxCuINDJdMnLbVbctjYSp2oGVtGYRiK6m81QGHQWAlhlRFtHskXiaKAuzhWDFm2Tpces hIZw== X-Received: by 10.42.236.4 with SMTP id ki4mr1711488icb.68.1408601243098; Wed, 20 Aug 2014 23:07:23 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.251.36 with HTTP; Wed, 20 Aug 2014 23:07:03 -0700 (PDT) In-Reply-To: <1408554018572-5755450.post@n5.nabble.com> References: <1408554018572-5755450.post@n5.nabble.com> From: Claus Ibsen Date: Thu, 21 Aug 2014 08:07:03 +0200 Message-ID: Subject: Re: Camel-Mybatis 2.13.1 CamelMyBatisStatementName not updated for failed statement To: "users@camel.apache.org" Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org Hi No this is correct. Camel only updates the message if the process was succesful. There is a property stored on the exchange with the failed endpoint you can use. See section _which endpoint failed_ at http://camel.apache.org/dead-letter-channel.html On Wed, Aug 20, 2014 at 7:00 PM, sandp wrote: > I'm trying to insert the failed CamelMyBatisStatementName to DB and noticed > that camel is not updating the header CamelMyBatisStatementName with the > statement name that failed. > > *Here's the scenario:* > from("some endpoint") > .to("mybatis:mapper.statement1?statementType=Update") > .to("mybatis:mapper.statement2?statementType=Update") > > .to("mybatis:mapper.statement3?statementType=InsertList&executorType=batch") > end(); > > statement2 failed in the route above, but when I looked at the header > CamelMyBatisStatementName, it still had the previously executed *statement1 > * name. > > I believe camel should update it with *statement2 * that actually failed as > per the *Message Headers* in Camel MyBatis > > > > > > > > > -- > View this message in context: http://camel.465427.n5.nabble.com/Camel-Mybatis-2-13-1-CamelMyBatisStatementName-not-updated-for-failed-statement-tp5755450.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: cibsen@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen hawtio: http://hawt.io/ fabric8: http://fabric8.io/