<div><div>On Thu, Apr 30, 2009 at 12:18 PM, Tony Garnock-Jones <span dir="ltr"><<a href="mailto:tonyg@lshift.net">tonyg@lshift.net</a>></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='text/x-json')</div>
<div> m.properties["delivery_mode"] = 2</div></div></div><div> </div><div>i've confirmed this works..... thanks tony<br></div></div></div>