Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 83482 invoked from network); 24 Apr 2009 05:49:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Apr 2009 05:49:58 -0000 Received: (qmail 59288 invoked by uid 500); 24 Apr 2009 05:49:57 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 59220 invoked by uid 500); 24 Apr 2009 05:49:57 -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 59210 invoked by uid 99); 24 Apr 2009 05:49:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Apr 2009 05:49:57 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of claus.ibsen@gmail.com designates 209.85.220.177 as permitted sender) Received: from [209.85.220.177] (HELO mail-fx0-f177.google.com) (209.85.220.177) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Apr 2009 05:49:47 +0000 Received: by fxm25 with SMTP id 25so902275fxm.20 for ; Thu, 23 Apr 2009 22:49:27 -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=BIl/ucORPji3AI36L2/38PjOqlA4t7dplN759t0O6qs=; b=RVvhNCLpa8LkquG23GnKKZjTp1IWeUgm0fbbwgFV9MSsdE6KDFufmzBH8fRPjCV8W3 o+/Zt46jUgGevS76vU+0MMTHKZ4rAvngC6h9XB+4Lz5YwPHa7nY55qqVfg/xKNS27GP8 wY5WkUCrFKHEb6QT/8jaF+iZKN3unB8GH3AtM= 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=Xir7lfe21WwJti7q54GPrgilH6xHqqz7r4lkmQc49xH5CFoHblZBMiunTUA5nG9fbP cSxeeEUx4/dxtZveLUu3ETuWMBH6LwnQw+zuJ/o5S2ZwMGqIPGlgM01IZaJbRc6v8RYg qltg4XzKxiaBOcS7ZB0hxhHfTMbsVFyx1eOCw= MIME-Version: 1.0 Received: by 10.223.127.4 with SMTP id e4mr533901fas.100.1240552167112; Thu, 23 Apr 2009 22:49:27 -0700 (PDT) In-Reply-To: References: <23105477.post@talk.nabble.com> <5380c69c0904172223j745583c7v51c67c6bdec2fa2e@mail.gmail.com> <5380c69c0904180305n16f98524tb402a65faea5bbb3@mail.gmail.com> From: Claus Ibsen Date: Fri, 24 Apr 2009 07:49:12 +0200 Message-ID: <5380c69c0904232249k21060779sea9e605b6db2072c@mail.gmail.com> Subject: Re: Payload Gets Nulled Out To: users@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi I created a ticket for this issue https://issues.apache.org/activemq/browse/CAMEL-1563 On Sun, Apr 19, 2009 at 8:53 PM, Roman Kalukiewicz wrote: > 2009/4/18 Claus Ibsen : >> We could add boolean hasOut() as a method on the Exchange. >> Then you can test whether an OUT has been set or not. >> >> even though getOut(false) does exactly that. Returning null if no OUT exists. > > This is not my point, that there is no clear way of verifying if there > is out or not. There is one you described. > > The problem (I believe) is in the way getOut() method works. The > majority of developers assume, that getter (and getOut() conforms to > JavaBean getter) will not modify anything in a way that can seriously > influence future behavior. In the case of getOut() an invocation of > this method can change the flow VERY significantly (in pipeline when > there is no OUT). > > Only this possible misunderstanding is my concern (and believe me - I > found a lot of cases when it happened to fresh camel riders) > > Roman > -- Claus Ibsen Apache Camel Committer Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus Apache Camel Reference Card: http://refcardz.dzone.com/refcardz/enterprise-integration