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 8738CDCAB for ; Wed, 15 Aug 2012 13:01:16 +0000 (UTC) Received: (qmail 1532 invoked by uid 500); 15 Aug 2012 13:01:16 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 1497 invoked by uid 500); 15 Aug 2012 13:01:16 -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 1488 invoked by uid 99); 15 Aug 2012 13:01:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Aug 2012 13:01:16 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of claus.ibsen@gmail.com designates 209.85.215.45 as permitted sender) Received: from [209.85.215.45] (HELO mail-lpp01m010-f45.google.com) (209.85.215.45) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Aug 2012 13:01:10 +0000 Received: by lagz14 with SMTP id z14so906322lag.32 for ; Wed, 15 Aug 2012 06:00:50 -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=1y1/RlQGiQzUJWxz0W6aalpBMv6vwumADMPP9bZb8zc=; b=FvuLnsfjlxTkgNtXu/H6QhKG3LFA2HZ9IWCDHbpBRkfSE3bqs/fkCB+KExvJmP6Fe4 pmATqJB4DJa5Lo4GhIiZZvUkm1ofC0eX5MzKrB4JZgSmvAJkiumiaV5B+dA+xzhCWyK9 SAacLWt9B8IN0tAcXT2cdfUA38elOcplgJFnx9S9nT8uXHEbYfBD33C7qzyS9uJqFg2a ZjM0asjb8IQ82FKwz/WI2iz1tW+okezcWPwIVGRuXm/4OLaBL2ZL/V+SttQTq7VXJsGZ rrsZ5bSYzpBid4tcfR7ktMxZXMx/xA42wE/oZHpcdsDZuH7XzmSIKhcZf9WeIab8xg8e QIyg== Received: by 10.152.111.71 with SMTP id ig7mr19189032lab.28.1345035650146; Wed, 15 Aug 2012 06:00:50 -0700 (PDT) MIME-Version: 1.0 Received: by 10.112.7.230 with HTTP; Wed, 15 Aug 2012 06:00:29 -0700 (PDT) In-Reply-To: References: From: Claus Ibsen Date: Wed, 15 Aug 2012 15:00:29 +0200 Message-ID: Subject: Re: enrich and pollEnrich To: users@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 On Wed, Aug 15, 2012 at 2:53 PM, Joe San wrote: > Camel Riders, > > I fail to fathom the fact that enrich works with a Producer EndPoint and > pollEnrich works with a Consumer EndPoint. Is there a design consideration > behind this mechanism? Can anyone please clarify why a pollEnrich should be > used with a Consumer EndPoint and not with a Producer EndPoint? Has it got > something to do with the Message type (request only or request / response)? > Yes some components support both producers and consumers, and behave differently. For example file/ftp components. The producer will write a file, and the consumer read a file. Where as a http component may only support the producer, etc. > Regards, > Jothi -- Claus Ibsen ----------------- FuseSource Email: cibsen@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen