[rabbitmq-discuss] Dead Lettering queries

Kwstantinos Polydwrou kpoly84 at gmail.com
Fri Apr 19 11:17:10 BST 2013


Hi Emile,

Thank you for your reply.

Unfortunately it is still not clear to me how to make use of Dead Lettering.

Here is the scenario I am trying to implement:

Simple case:
1. A message is sent from application A.
2. Message from Application A is queued in RabbitMQ.
3. Application B receives the message from RabbitMQ and performs the
processing.
This works fine.

DL case:
1. A message is sent from application A.
2. Message from Application A is queued in RabbitMQ.
3. Application B receives the message from RabbitMQ and starts the
processing.
4. Application B throws an NPE during the processing.
5. The message from step 1 is now in DLQ, to be re-sent to application B.

Step 5 is obviously the one causing me the headache.

So some more concrete questions are:
- Do I have to bind both of my 'Test queue' and 'Dead letter queue' to the
same exchange?
- Is the '"x-dead-letter-exchange" argument to be provided in the
'Dead letter queue' declaration arguments?
- How is the 're-routing' of messages performed from the original queue to
the 'Dead letter queue'?

I realise these are too many questions, but I am rather new to RabbitMQ.
Plus, it's been hard finding examples scenario implementations :)

Best regards,
K.





On 15 April 2013 15:13, Emile Joubert <emile at rabbitmq.com> wrote:

>
> Hi,
>
> On 15/04/13 11:47, Kwstantinos Polydwrou wrote:
> > Can anyone inform me if any DL code examples/samples are available?
>
> There are some examples of use by the Java client in unit tests
> (com.rabbitmq.client.test.functional.DeadLetterExchange):
>
>
> http://hg.rabbitmq.com/rabbitmq-java-client/file/default/test/src/com/rabbitmq/client/test/functional/DeadLetterExchange.java
>
>
>
> -Emile
>
>
>
>
>
>

On 15 April 2013 15:13, Emile Joubert <emile at rabbitmq.com> wrote:

>
> Hi,
>
> On 15/04/13 11:47, Kwstantinos Polydwrou wrote:
> > Can anyone inform me if any DL code examples/samples are available?
>
> There are some examples of use by the Java client in unit tests
> (com.rabbitmq.client.test.functional.DeadLetterExchange):
>
>
> http://hg.rabbitmq.com/rabbitmq-java-client/file/default/test/src/com/rabbitmq/client/test/functional/DeadLetterExchange.java
>
>
>
> -Emile
>
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20130419/c79ba901/attachment.htm>


More information about the rabbitmq-discuss mailing list