[rabbitmq-discuss] Dead Letter Exchanges

James Carr james.r.carr at gmail.com
Fri Mar 30 07:08:10 BST 2012


Your error_exc is defined as type direct yet you bound it using #. Change
it to a topic and your binding should work.

Thanks,
James


2012/3/29 <rui.favas at barclays.com>

>  Hi,****
>
> ** **
>
> Can’t get the Dead Letter Exchanges to work with “x-message-ttl”. Please
> see details below:-****
>
> ** **
>
> I can publish messages to the “testqueue” queue and the messages get
> removed after the “x-message-ttl” timeout but don’t get routed to the
> “errorqueue” via the “error_exc” exchange. Can you help??****
>
> ** **
>
> ** **
>
> I have two exchanges:****
>
> ** **
>
> *Exchange: error_exc*
>
> Type****
>
> direct****
>
> Parameters****
>
> durable:****
>
> true****
>
> Virtual host****
>
> /test****
>
> ** **
>
> *Exchange: test_exc*
>
> Type****
>
> direct****
>
> Parameters****
>
> durable:****
>
> true****
>
> Virtual host****
>
> /test****
>
> ** **
>
> ** **
>
> I have two queues:****
>
> ** **
>
> *Queue: testqueue*
>
> Parameters****
>
> arguments:****
>
> x-dead-letter-exchange:****
>
> error_exc****
>
> x-message-ttl:****
>
> 5000****
>
> durable:****
>
> true****
>
> Exclusive owner****
>
> None ****
>
> Status****
>
> Idle since
> 2012-3-29 16:52:55****
>
> * *
>
> *Bindings:*
>
> * *
>
> From****
>
> Routing key****
>
> Arguments****
>
> *test_exc* <http://bim_bus_admin_uat:55672/#/exchanges/%2Fbcfs/test_exc>
> Exchange ****
>
> Top of Form****
>
> ****
>
> Bottom of Form****
>
> *(AMQP default)*<http://bim_bus_admin_uat:55672/#/exchanges/%2Fbcfs/amq.default>
> Exchange ****
>
> testqueue****
>
> → testqueue ****
>
> * *
>
> * *
>
> ** **
>
> *Queue: errorqueue*
>
> Parameters****
>
> durable:****
>
> true****
>
> Exclusive owner****
>
> None ****
>
> Status****
>
> Idle since
> 2012-3-29 16:49:46****
>
> ** **
>
> Consumers****
>
> 0****
>
> Memory****
>
> 4.1kB****
>
> ** **
>
> Virtual host****
>
> /test****
>
> * *
>
> *Bindings:*
>
> From****
>
> Routing key****
>
> Arguments****
>
> *error_exc* <http://bim_bus_admin_uat:55672/#/exchanges/%2Fbcfs/error_exc>
> Exchange ****
>
> #****
>
> Top of Form****
>
> ****
>
> Bottom of Form****
>
> *(AMQP default)*<http://bim_bus_admin_uat:55672/#/exchanges/%2Fbcfs/amq.default>
> Exchange ****
>
> errorqueue****
>
> → errorqueue ****
>
> * *
>
> * *
>
> * *
>
> *_______________________________________________*
>
> Barclays is one of the world�s leading banks, and we believe that by
> continuing to integrate the organisation we can better deliver the full
> power of Barclays to customers, clients and the communities in which we
> work. ****
>
> As a visible sign of that integration we are moving to a single Barclays
> brand for the majority of our divisions, including those formerly known as
> Barclays Capital, Barclays Wealth and Barclays Corporate.****
>
>
>
> _______________________________________________****
>
> ****
>
> This e-mail may contain information that is confidential, privileged or
> otherwise protected from disclosure. If you are not an intended recipient
> of this e-mail, do not duplicate or redistribute it by any means. Please
> delete it and any attachments and notify the sender that you have received
> it in error. Unless specifically indicated, this e-mail is not an offer to
> buy or sell or a solicitation to buy or sell any securities, investment
> products or other financial product or service, an official confirmation of
> any transaction, or an official statement of Barclays. Any views or
> opinions presented are solely those of the author and do not necessarily
> represent those of Barclays. This e-mail is subject to terms available at
> the following link: www.barcap.com/emaildisclaimer<http://www.barclays.com/emaildisclaimer>.
> By messaging with Barclays you consent to the foregoing.  Barclays offers
> premier investment banking products and services to its clients through Barclays
> Bank PLC, a company registered in England (number 1026167) with its
> registered office at 1 Churchill Place, London, E14 5HP.  This email may
> relate to or be sent from other members of the Barclays Group.**
>
> _______________________________________________****
>
>
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20120330/51e8b4db/attachment.htm>


More information about the rabbitmq-discuss mailing list