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 456CB11259 for ; Thu, 3 Jul 2014 03:17:48 +0000 (UTC) Received: (qmail 25307 invoked by uid 500); 3 Jul 2014 03:17:47 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 25246 invoked by uid 500); 3 Jul 2014 03:17:47 -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 25233 invoked by uid 99); 3 Jul 2014 03:17:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jul 2014 03:17:47 +0000 X-ASF-Spam-Status: No, hits=0.3 required=5.0 tests=FREEMAIL_REPLY,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of willem.jiang@gmail.com designates 209.85.220.44 as permitted sender) Received: from [209.85.220.44] (HELO mail-pa0-f44.google.com) (209.85.220.44) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jul 2014 03:17:45 +0000 Received: by mail-pa0-f44.google.com with SMTP id rd3so13662254pab.31 for ; Wed, 02 Jul 2014 20:17:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :content-type:content-transfer-encoding:content-disposition; bh=LAHpHoz/pjTaOP1POXELT4uCx0IT1WBAYdG5xD9p7iA=; b=iRZ9wg8IWEMMUcycYKb1NN3GOIToO/rjKTwxnFx0R6EkTKiFj06syjznybro5PDrTu 9aEukk75BShmKmSlMeHyw/LyTAijLda4n85dKRMQ74JWAwFvU3Lc7wsBRYpkqV4BzDoZ aDtbCJTFRVqyg9+rHwx71pXsc8cS0GzJcL7IhY+xt0AF5WtHOQHFu8NSCfnvy3mVeiZ4 CzUnK1wJdgizuDoo1++6JmsU8P7ypFSrEywopgTNxlLsNDszDalY6iqjIiKKu9UsL+Mk HWfpIPaWD3W1a9Kdiuv7fijkkYIOZRLMXMtsZsxWuyaG/R/nZcPA82pYCnij89OU9Kbd uf4g== X-Received: by 10.66.164.234 with SMTP id yt10mr1814420pab.65.1404357440721; Wed, 02 Jul 2014 20:17:20 -0700 (PDT) Received: from localhost ([123.116.46.201]) by mx.google.com with ESMTPSA id z3sm137138648pas.15.2014.07.02.20.17.14 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 02 Jul 2014 20:17:15 -0700 (PDT) Date: Thu, 3 Jul 2014 11:17:01 +0800 From: Willem Jiang To: users@camel.apache.org Message-ID: In-Reply-To: References: Subject: Re: enrich() and ExchangeSentEvents X-Mailer: Airmail (237) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org =46YI, I just created JIRA=5B1=5D for it. =5B1=5Dhttps://issues.apache.org/jira/browse/CAMEL-7570 -- =20 Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese) Twitter: willemjiang =20 Weibo: =E5=A7=9C=E5=AE=81willem On July 3, 2014 at 12:20:19 AM, Claus Ibsen (claus.ibsen=40gmail.com) wro= te: > Hi > =20 > Yeah this can be improved, fell free to log a JIRA ticket about this > http://camel.apache.org/support.html > =20 > On Wed, Jul 2, 2014 at 5:46 PM, J=C3=B6rn Gersdorf wrote: > > Hi, > > > > I'm playing with Camel 2.12 and the event notification system and > > discovered a difference in behavior using enrich() as opposed to > > inOnly()/inOut() wrt events sent out. > > > > When using inOnly() or inOut() in the example below I see an > > ExchangeSendingEvent and an ExchangeSentEvent when sending/receiving = to the > > activemq endpoint. > > > > However, and this is confusing, when using enrich() neither > > ExchangeSendingEvent nor ExchangeSentEvent is produced. > > > > Is this by purpose or a bug=3F > > > > Kind regards, > > J=C3=B6rn > > > > Example route: > > > > from(=22direct:start=22) > > .enrich(=22activemq:enricher=22) > > // .inOnly(=22activemq:enricher=22) > > // .inOut(=22activemq:enricher=22) > > .to(=22mock:end=22); > > > > from(=22activemq:enricher=22) > > .setBody(simple(=22Hello, =24=7Bbody=7D=21=22)); > =20 > =20 > =20 > -- > Claus Ibsen > ----------------- > Red Hat, Inc. > Email: cibsen=40redhat.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/ > =20