camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem jiang <>
Subject Re: RabbitMQ producer routing key only as an Exchange header?
Date Mon, 11 Nov 2013 03:52:53 GMT

I just created a JIRA[1] of it, we should let user set the default routing key on the producer.


Willem Jiang

Red Hat, Inc.
Blog: ( (English)
 ( (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem

On Saturday, November 9, 2013 at 12:00 AM, Alex Sherwin wrote:

> The code and docs seem pretty clear..
> The consumer side makes sense, being able to set the Routing Key for
> binding and optional Queue name...
> But why must the producer side set an Exchange header to set the routing
> key? Doesn't this make it very difficult to write fluent routes.. for
> example, with JMS or ActiveMQ you could do:
> from("direct:start point").process(dosomething).to("activemq:out queue")
> There does not appear to be a simple equivalent for RabbitMQ at this time,
> instead having to resort to writing code to set a routing key on the
> exchange and then set the headers, which is cumbersome and tightly couples
> routing logic directly into the messages themselves, rather then letting
> the routes define it
> Unless I'm missing something obvious here.. seems like it will be difficult
> to use like this.
> I would have expected to be able to do:
> .to("rabbitmq://server/exchange?routingKey=abc)
> --  
> Alexander Sherwin

View raw message