Return-Path: X-Original-To: apmail-camel-dev-archive@www.apache.org Delivered-To: apmail-camel-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B41F84B35 for ; Sun, 19 Jun 2011 08:51:08 +0000 (UTC) Received: (qmail 1602 invoked by uid 500); 19 Jun 2011 08:51:08 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 1575 invoked by uid 500); 19 Jun 2011 08:51:08 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 1567 invoked by uid 99); 19 Jun 2011 08:51:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 19 Jun 2011 08:51:08 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 19 Jun 2011 08:51:07 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 62DEA42136A for ; Sun, 19 Jun 2011 08:50:47 +0000 (UTC) Date: Sun, 19 Jun 2011 08:50:47 +0000 (UTC) From: "Claus Ibsen (JIRA)" To: dev@camel.apache.org Message-ID: <467473648.19024.1308473447401.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <585270722.18221.1308412547379.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (CAMEL-4117) RedeliverErrorHandler - Should make defensive copy of Exchange so redelivery works for using Processor MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CAMEL-4117?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Claus Ibsen updated CAMEL-4117: ------------------------------- Attachment: CAMEL-4117.patch Work in progress patch > RedeliverErrorHandler - Should make defensive copy of Exchange so redelivery works for using Processor > ------------------------------------------------------------------------------------------------------ > > Key: CAMEL-4117 > URL: https://issues.apache.org/jira/browse/CAMEL-4117 > Project: Camel > Issue Type: Improvement > Components: camel-core > Affects Versions: 2.7.0 > Reporter: Claus Ibsen > Assignee: Claus Ibsen > Fix For: 2.8.0, 2.9.0 > > Attachments: CAMEL-4117.patch > > > When using redelivery with the Camel error handler, it will by default use the _previous_ exchange when redelivering. This ensures that any changes that was done by the failed attempt does not reflect when a redelivery is performed (eg think like use original message). However this does not apply when end users uses the low level .process in their Camel routes. So if they change the Exchange in the .process and then some error occurs, then that change is redelivered. > We should consider making the redelivery error handler do a defensive copy of the exchange, so it can redelivery without any changes/side effects. For example this happens when people use .bean or any of the other EIPs. So why not for .process as well? -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira