camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: enrich and pollEnrich
Date Wed, 15 Aug 2012 13:00:29 GMT
On Wed, Aug 15, 2012 at 2:53 PM, Joe San <codeintheopen@gmail.com> 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

Mime
View raw message