Return-Path: X-Original-To: apmail-camel-issues-archive@minotaur.apache.org Delivered-To: apmail-camel-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DBC2CD10E for ; Tue, 9 Oct 2012 20:14:03 +0000 (UTC) Received: (qmail 32130 invoked by uid 500); 9 Oct 2012 20:14:03 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 32111 invoked by uid 500); 9 Oct 2012 20:14:03 -0000 Mailing-List: contact issues-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 issues@camel.apache.org Received: (qmail 32103 invoked by uid 99); 9 Oct 2012 20:14:03 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Oct 2012 20:14:03 +0000 Date: Tue, 9 Oct 2012 20:14:03 +0000 (UTC) From: "Raul Kripalani (JIRA)" To: issues@camel.apache.org Message-ID: <425513521.16481.1349813643795.JavaMail.jiratomcat@arcas> In-Reply-To: <1403541730.16408.1349812323309.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (CAMEL-5696) camel-mongodb save operation should put have configurable option to put WriteResult in header 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-5696?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13472706#comment-13472706 ] Raul Kripalani commented on CAMEL-5696: --------------------------------------- We could call this option {{writeResultAsHeader}} (false by default), and the header could be named {{CamelMongoDbWriteResult}}. Not only should it apply to the save operation, but also to all write operations in general. Beware that the result is always returned in an OUT message, and this must remain unchanged to preserve endpoint semantics. If {{writeResultAsHeader}} is enabled, we would copy the IN body to the OUT body. In fact, now that I look at the source, the camel-mongodb component should also transfer all headers from the IN message to the OUT message. Currently they I think are lost. > camel-mongodb save operation should put have configurable option to put WriteResult in header > --------------------------------------------------------------------------------------------- > > Key: CAMEL-5696 > URL: https://issues.apache.org/jira/browse/CAMEL-5696 > Project: Camel > Issue Type: Improvement > Components: camel-mongodb > Affects Versions: 2.10.1 > Environment: Windows 7, Camel 2.10.1, MongoDB 2.7.3 > Reporter: Mark Webb > Priority: Minor > Labels: features > Fix For: 2.11.0 > > Original Estimate: 48h > Remaining Estimate: 48h > > I would like a configurable option to put the WriteResult from a mongodb save into the Exchange header and keep the input message to be the same as the output message. > If a user wants to put the update in the processing of data and continue more processing of the data they won't be able to do so because the data is lost and replaced with a WriteResult object. > There are EIP workarounds for this, but a simple configuration option would work in this case. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira