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 &#39;declarations&#39; part of &#39;destination&#39; 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&#39;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 &#39;host1&#39;, so messages published to &lt;&lt;&quot;source_exchange&quot;&gt;&gt; (with the direct routing key) will be consumed by shovel, and then published to &lt;&lt;&quot;destination_exchange&quot;&gt;&gt; on the destination &#39;host2&#39;. </div>
<div><br></div><div>Because of the declarations in the destination configuration, messages will then be routed and queued in &lt;&lt;&quot;destination_queue&quot;&gt;&gt;</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">&lt;<a href="mailto:bino@indoakses-online.com" target="_blank">bino@indoakses-online.com</a>&gt;</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, &quot;amqp://guest:guest@localhost&quot;<u></u>}]},<br>
            {destinations, [{broker, &quot;amqp://<a href="mailto:guest%3Aguest@192.168.10.241" target="_blank">guest:guest@192.168.<u></u>10.241</a>&quot;}]},<br>
            {queue, &lt;&lt;&quot;task_queue&quot;&gt;&gt;},<br>
            {reconnect_delay, 5}<br>
           ]}<br>
          ]<br>
        }]<br>
     }<br>
].<br>
<br>
--------STOP------------<br>
<br>
What if the queue name at the source broker is &#39;src_q1&#39; and at the destination broker is &#39;dst_q1&#39; ?<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>