<div><div>On Thu, Apr 30, 2009 at 12:18 PM, Tony Garnock-Jones <span dir="ltr">&lt;<a href="mailto:tonyg@lshift.net">tonyg@lshift.net</a>&gt;</span> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">To get your messages to stick around after a restart, you must both<br></div>
<br>
�- arrange for them to land in a durable queue, AND<br>
�- publish them with delivery-mode set to 2 (meaning persistent)<br>
 � in the content header for the basic.publish<br></blockquote><div><br></div><div>ah-ha! Thank you, in py-amqplib this is simple:<div><br></div><div><div>�� � � �m = amqp.Message(whatever, content_type=&#39;text/x-json&#39;)</div>
<div>�� � � �m.properties[&quot;delivery_mode&quot;] = 2</div></div></div><div>�</div><div>i&#39;ve confirmed this works..... thanks tony<br></div></div></div>