<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 &#39;Test queue&#39; and &#39;Dead letter queue&#39; to the same exchange?</div><div>- Is the &#39;&quot;x-dead-letter-exchange&quot; argument to be provided in the &#39;Dead�letter queue&#39; declaration arguments?</div>
<div>- How is the &#39;re-routing&#39; of messages performed from the original queue to the &#39;Dead letter queue&#39;?</div><div><br></div><div>I realise these are too many questions, but I am rather new to RabbitMQ. Plus, it&#39;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">&lt;<a href="mailto:emile@rabbitmq.com" target="_blank">emile@rabbitmq.com</a>&gt;</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>
&gt; 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">&lt;<a href="mailto:emile@rabbitmq.com" target="_blank">emile@rabbitmq.com</a>&gt;</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>
&gt; 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>