Bino,<div><br></div><div>You consume from a queue on one broker, and publish/shovel to an exchange somewhere else..</div><div><br></div><div>Therefore, you can use the 'declarations' part of 'destination' configuration to set up a differently named queue and bind it to the exchange to which the messages are being published.</div>
<div><br></div><div>I've tried to outline the above in a (untested) configuration snippet here: <a href="https://gist.github.com/2723964">https://gist.github.com/2723964</a></div><div><br></div><div>It simply predeclares an exchange, queue, and binding on the source 'host1', so messages published to <<"source_exchange">> (with the direct routing key) will be consumed by shovel, and then published to <<"destination_exchange">> on the destination 'host2'. </div>
<div><br></div><div>Because of the declarations in the destination configuration, messages will then be routed and queued in <<"destination_queue">></div><div><br></div><div>Hopefully that makes sense.</div>
<div><br></div><div>- Brendan</div><div><br><div class="gmail_quote">On Fri, May 18, 2012 at 10:13 AM, bino oetomo <span dir="ltr"><<a href="mailto:bino@indoakses-online.com" target="_blank">bino@indoakses-online.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear All ....<br>
<br>
Is it possible to use shovel with different queue_name between source and destination ?<br>
<br>
my current config file is :<br>
--------START-----------<br>
[<br>
{mnesia, [{dump_log_write_threshold, 100}<br>
]},<br>
{rabbit, [{vm_memory_high_watermark, 0.4}<br>
]},<br>
{rabbitmq_shovel,<br>
[{shovels,<br>
[{myshovel,<br>
[{sources, [{broker, "amqp://guest:guest@localhost"<u></u>}]},<br>
{destinations, [{broker, "amqp://<a href="mailto:guest%3Aguest@192.168.10.241" target="_blank">guest:guest@192.168.<u></u>10.241</a>"}]},<br>
{queue, <<"task_queue">>},<br>
{reconnect_delay, 5}<br>
]}<br>
]<br>
}]<br>
}<br>
].<br>
<br>
--------STOP------------<br>
<br>
What if the queue name at the source broker is 'src_q1' and at the destination broker is 'dst_q1' ?<br>
<br>
Sincerely<br>
-bino-<br>
______________________________<u></u>_________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com" target="_blank">rabbitmq-discuss@lists.<u></u>rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/<u></u>cgi-bin/mailman/listinfo/<u></u>rabbitmq-discuss</a><br>
</blockquote></div><br></div>