<div dir="ltr">Hi Emile,<div><br></div><div>Thank you for your reply.</div><div><br></div><div>Unfortunately it is still not clear to me how to make use of Dead Lettering.</div><div><br></div><div>Here is the scenario I am trying to implement:</div>
<div><br></div><div>Simple case:</div><div>1. A message is sent from application A.</div><div>2. Message from Application A is queued in RabbitMQ.</div><div>3. Application B receives the message from RabbitMQ and performs the processing.</div>
<div>This works fine.</div><div><br></div><div>DL case:</div><div>1. A message is sent from application A.</div><div>2. Message from Application A is queued in RabbitMQ.<br></div><div>3. Application B receives the message from RabbitMQ and starts the processing.<br>
</div><div>4. Application B throws an NPE during the processing.</div><div>5. The message from step 1 is now in DLQ, to be re-sent to application B.</div><div><br></div><div>Step 5 is obviously the one causing me the headache.</div>
<div><br></div><div>So some more concrete questions are:</div><div>- Do I have to bind both of my 'Test queue' and 'Dead letter queue' to the same exchange?</div><div>- Is the '"x-dead-letter-exchange" argument to be provided in the 'Dead letter queue' declaration arguments?</div>
<div>- How is the 're-routing' of messages performed from the original queue to the 'Dead letter queue'?</div><div><br></div><div>I realise these are too many questions, but I am rather new to RabbitMQ. Plus, it's been hard finding examples scenario implementations :)</div>
<div><br></div><div>Best regards,</div><div>K.</div><div><br></div><div><br></div><div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 15 April 2013 15:13, Emile Joubert <span dir="ltr"><<a href="mailto:emile@rabbitmq.com" target="_blank">emile@rabbitmq.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><br>Hi,<br><div class="im"><br>On 15/04/13 11:47, Kwstantinos Polydwrou wrote:<br>
> Can anyone inform me if any DL code examples/samples are available?<br><br></div>There are some examples of use by the Java client in unit tests<br>(com.rabbitmq.client.test.functional.DeadLetterExchange):<br><br><a href="http://hg.rabbitmq.com/rabbitmq-java-client/file/default/test/src/com/rabbitmq/client/test/functional/DeadLetterExchange.java" target="_blank">http://hg.rabbitmq.com/rabbitmq-java-client/file/default/test/src/com/rabbitmq/client/test/functional/DeadLetterExchange.java</a><br>
<span class=""><font color="#888888"><br><br><br>-Emile<br><br><br><br><br><br></font></span></blockquote></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 15 April 2013 15:13, Emile Joubert <span dir="ltr"><<a href="mailto:emile@rabbitmq.com" target="_blank">emile@rabbitmq.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Hi,<br>
<div class="im"><br>
On 15/04/13 11:47, Kwstantinos Polydwrou wrote:<br>
> Can anyone inform me if any DL code examples/samples are available?<br>
<br>
</div>There are some examples of use by the Java client in unit tests<br>
(com.rabbitmq.client.test.functional.DeadLetterExchange):<br>
<br>
<a href="http://hg.rabbitmq.com/rabbitmq-java-client/file/default/test/src/com/rabbitmq/client/test/functional/DeadLetterExchange.java" target="_blank">http://hg.rabbitmq.com/rabbitmq-java-client/file/default/test/src/com/rabbitmq/client/test/functional/DeadLetterExchange.java</a><br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
-Emile<br>
<br>
<br>
<br>
<br>
<br>
</font></span></blockquote></div><br></div>