[rabbitmq-discuss] Shovel with multiple publish_properties oddity
Jason McIntosh
mcintoshj at gmail.com
Fri Dec 20 16:27:05 GMT 2013
SO I have a shovel configuration I'm trying to get working so I can pass
back the "source-ip". I'd previously done this with a header and it
worked, but I'm trying to switch to a publish_property so developers can
use headers in their publishes (since me setting the headers in the shovel
config overrides their headers).
With this config, things don't work:
[
{rabbit, [
{vm_memory_high_watermark, 0.6}
, {hipe_compile, false}
]}
, {rabbitmq_shovel,[{shovels, [
{ 'vhost_queue', [
{sources, [{broker, "amqp://guest:guest@/vhost"}] }
, {destinations, [{broker,
"amqp://guest:guest@brokerhost/vhost"}]
}
, {queue, <<"queue">>}
, {prefetch_count, 15}
, {publish_properties, [
{delivery_mode,2},
{content_type, <<"test">>}
]}
, {reconnect_delay, 30}
, {publish_fields, [{exchange,
<<"exchange">>},{routing_key, <<"queue">>}]}
] }
]}]}
].
But if I remove the line "{delivery_mode,2}," rabbit starts up fine. If I
remove the content_type entry, rabbit starts up - it's just when both are
there nothing works. Note, I can set the publish_properties for the
header, e.g.:
{publish_properties, [
{delivery_mode, 2}
, {headers, [{<<"source">>,longstr,<<"${HOSTNAME}">>}] }
]}
Works just fine. Am I missing something?
Thanks!
Jason
--
Jason McIntosh
https://github.com/jasonmcintosh/
573-424-7612
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20131220/338993d1/attachment.html>
More information about the rabbitmq-discuss
mailing list