[rabbitmq-discuss] configuring an header exchange binding in rabbitmq.cfg

Matthias Radestock matthias at rabbitmq.com
Fri Nov 11 08:44:34 GMT 2011


Tom,

On 11/11/11 00:28, Tom Cellucci wrote:
> I'd like to configure an exchange binding, which sadly is not
> working  like I'd hoped.
 > [...]
>                                    {'exchange.bind', [
>                                       {exchange,<<"events_forwarding_exchange">>},
>                                       {exchange,<<"events_local_exchange">>},
>                                       {arguments, [
>                                          {"x-match", longstr, "any"},
>                                          {"route_to_local", longstr, "true"},
>                                          {"route_to_dc2", longstr, "true"}
>                                       ]}
>                                    ]}
>
> With the above configuration, the broker fails to start and emits the following error:
>
> =INFO REPORT==== 10-Nov-2011::16:03:35 ===
>      application: rabbitmq_shovel
>      exited: {{invalid_shovel_configuration,master_events_shovel,
>                   {invalid_parameter_value,sources,
>                       {unknown_fields,'exchange.bind',[exchange]}}},
>               {rabbit_shovel,start,[normal,[]]}}
>      type: permanent

The field names need to match what is in the spec. See 
http://www.rabbitmq.com/amqp-0-9-1-reference.html#exchange.bind - so 
instead of having two 'exchange' fields you need one 'destination' and 
one 'source' field.

Matthias.


More information about the rabbitmq-discuss mailing list