You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Rahul Jain <ra...@gmail.com> on 2015/06/24 19:51:06 UTC

[Camel-kafka] KafkaProducer causes camel route to loop infinitely

The KafkaProducer class reads the topic name from exchange headers. This
causes a problem when the route ends with a "to" endpoint since in this
case, the exchange still has its header set to the "from" endpoint's topic.

See my comments in https://issues.apache.org/jira/browse/CAMEL-7331

Thanks,
Rahul

Re: [Camel-kafka] KafkaProducer causes camel route to loop infinitely

Posted by Rahul Jain <ra...@gmail.com>.
Thanks. Created a ticket - https://issues.apache.org/jira/browse/CAMEL-8923



On Wed, Jul 1, 2015 at 1:43 PM, Claus Ibsen <cl...@gmail.com> wrote:

> Hi
>
> Yeah log a new ticket, then we change the header name to something
> else that are not the same header as used in the from - we do the same
> in JMS, if people want to send to a destination based on a header.
>
> On Wed, Jun 24, 2015 at 7:51 PM, Rahul Jain <ra...@gmail.com> wrote:
> > The KafkaProducer class reads the topic name from exchange headers. This
> > causes a problem when the route ends with a "to" endpoint since in this
> > case, the exchange still has its header set to the "from" endpoint's
> topic.
> >
> > See my comments in https://issues.apache.org/jira/browse/CAMEL-7331
> >
> > Thanks,
> > Rahul
>
>
>
> --
> Claus Ibsen
> -----------------
> Red Hat, Inc.
> Email: cibsen@redhat.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/
>

Re: [Camel-kafka] KafkaProducer causes camel route to loop infinitely

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

Yeah log a new ticket, then we change the header name to something
else that are not the same header as used in the from - we do the same
in JMS, if people want to send to a destination based on a header.

On Wed, Jun 24, 2015 at 7:51 PM, Rahul Jain <ra...@gmail.com> wrote:
> The KafkaProducer class reads the topic name from exchange headers. This
> causes a problem when the route ends with a "to" endpoint since in this
> case, the exchange still has its header set to the "from" endpoint's topic.
>
> See my comments in https://issues.apache.org/jira/browse/CAMEL-7331
>
> Thanks,
> Rahul



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.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/