[rabbitmq-discuss] Shovel with exchange-exchange bindings

Busoli, Simone Simone.Busoli at ferrari.com
Mon Jul 25 10:45:09 BST 2011


I'm trying to set up a shovel with exchange-exchange bindings to workaround the issue with infinite loops when configuring a symmetric shovel between two brokers (to achieve transparent bidirectional communication), but I get an error on broker startup as if the shovel didn't support exchange-exchange bindings.

As suggested by Matthew some time ago on the list this is what I'm trying to accomplish:

              /---------------------[ Shovel 2 ]---------------------\
              |                                                      |
              V                                                      |
--->[X1]--->[X2]---->[[my queues]]        [[my queues]]<---[X2]<---[X1]<---
     |                                                       ^
     |                                                       |
     \------------------[ Shovel 1 ]-------------------------/


But on broker startup I get  this:

{"Kernel pid terminated",application_controller,"{application_start_failure,rabbitmq_shovel,{{invalid_shovel_configuration,test1,{invalid_parameter_value,sources,{unknown_method_name,'exchange.bind'}}},{rabbit_shovel,start,[normal,[]]}}}"}

Here is the configuration fragment:

{test1,
      [{sources, [{broker, "amqp://"},
                       {declarations,
                          [	{'exchange.declare',
                                  [{exchange, <<"X1">>},
                                   {type, <<"topic">>}]},
		{'exchange.declare',
                                  [{exchange, <<"X2">>},
                                   {type, <<"topic">>}]},
		{'queue.declare',
		   [{queue, <<"xshovelqueue">>}]},
                           {	'queue.bind',
                                  [{exchange, <<"X1">>},
                                   {queue,    <<"xshovelqueue">>},
		   {routing_key, <<"#">>}]},
		{'exchange.bind',
                                  [{source, <<"X1">>},
                                   {destination,    <<"X2">>},
		    {routing_key, <<"#">>}]}
                          ]}]},
       {destinations, [{broker, "amqp://localhost/shovel"},
                       {declarations,
                          [{'exchange.declare',
                                  [{exchange, <<"X2">>},
                                   {type, <<"topic">>}]}
                          ]}]},
       {queue, <<"xshovelqueue">>},
       {auto_ack, false},
       {tx_size, 0}
      ]}

_________________________________________________________________________________________________________________
Questo messaggio e da intendersi esclusivamente ad uso del destinatario e puo contenere informazioni che sono di natura privilegiata, confidenziale
o non divulgabile secondo le leggi vigenti. Se il lettore del presente messaggio non e il destinatario designato, o il dipendente/agente responsabile
per la consegna del messaggio al destinatario designato, si informa che ogni disseminazione, distribuzione o copiatura di questa comunicazione e 
strettamente proibita anche ai sensi del decreto legislativo 196/03 . Se avete ricevuto questo messaggio per errore, vi preghiamo di notificarcelo
immediatamente a mezzo e-mail di risposta e successivamente di procedere alla cancellazione di questa e-mail e relativi allegati dal vostro sistema.
_________________________________________________________________________________________________________________
This message is intended only for the use of the addressee and may contain information that is privileged, confidential and exempt from 
disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering the 
message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly 
prohibited. If you have received this e-mail in error, please notify us immediately by return e-mail and delete this e-mail and all attachments from 
your system.
_________________________________________________________________________________________________________________



More information about the rabbitmq-discuss mailing list