See the content enricher EIP and the pollEnrich On Wed, Dec 23, 2015 at 1:51 PM, web_nab...@sunilsamuel.com <web_nab...@sunilsamuel.com> wrote: > Hello, > > I am trying to use the kafka component as a consumer from within a route. > For instance, > > from("timer://foo?fixedRate=true&period=60000") > /* Use Kafka to consumer message */ > .setHeader("kafka.OFFSET",constant("0")) > .to("kafka:192.168.111.54:9092?topic=test&"+ > > "zookeeperHost=192.168.111.54&zookeeperPort=2181&"+ > "groupId=groupBatch&consumerId=100") > .to("log:input ${body}"); > > But at this point, the way that I am using it, the kafka component becomes a > producer. Is there a way to consume from within a route? > > thanks, > sunil. > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Camel-Kafka-Component-as-a-Consumer-within-a-Route-tp5775404.html > Sent from the Camel Development mailing list archive at Nabble.com.
-- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2