[rabbitmq-discuss] Shovel creation using Java client.
Timya Tortus
timya15 at gmail.com
Thu Mar 15 06:03:08 GMT 2012
The sample from the URL:
https://github.com/rabbitinaction/sourcecode/blob/master/configs/rabbitmq/rabbitmq.config.shovel
{rabbitmq_shovel,
[{shovels,
[{avocado_order_shovel,
[{sources, [
{broker, "amqp://guest:guest@ClientRabbit:5672"},
{declarations,
[{'queue.declare',[{queue, <<"backup_orders">>},durable]},
{'exchange.declare',[{exchange, <<"incoming_orders">>},{type,
<<"direct">>}, durable]},
{'queue.bind',[{exchange, <<"incoming_orders">>},{queue,
<<"backup_orders">>},{routing_key, <<"warehouse">>}]}
]}
]},
{destinations, [
{broker, "amqp://guest:guest@ServerRabbit:5672"},
{declarations,
[{'queue.declare',[{queue, <<"warehouse_carpinteria">>},durable]},
{'exchange.declare', [{exchange, <<"incoming_orders">>},{type,
<<"direct">>}, durable]},
{'queue.bind',[{exchange, <<"incoming_orders">>},{queue,
<<"warehouse_carpinteria">>},{routing_key, <<"warehouse">>}]}
]}
]},
{queue, <<"backup_orders">>},
{publish_properties, [{delivery_mode, 2}]},
{publish_fields, [{exchange, <<"incoming_orders">>},{routing_key,
<<"warehouse">>}]},
{reconnect_delay, 5}
]}
]
}]
}
Is there any sample, the shovel exchange/queue/binding created using Java
client library.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20120315/6afb397c/attachment.htm>
More information about the rabbitmq-discuss
mailing list