[rabbitmq-discuss] Help with persistence using RabbitMQ?
Rader Lei
rader.net at gmail.com
Wed May 23 10:10:56 BST 2012
Hi James,
Both the queue and every single message should be durable if you want
RabbitMQ to persist messages for you. For a queue, declare it as durable.
For a message, set the "deliveryMode" to 2 (persistent), default is 1
(non-persistent), when publish it.
On Tuesday, April 3, 2012 7:01:32 AM UTC+8, iceblaze wrote:
>
> Hello,
>
> I seem to be having problems with persistence using RabbitMQ, and I was
> wondering if someone would help point out what I'm missing?
>
> For example, http://pastebin.com/PRRHx5hF
>
> I run the "send" function 20 times to fill the queue with 20 messages,
> then I run rabbitmqadmin list queues, and after /etc/init.d/rabbitmq-server
> restart. Finally. I run rabbitmqadmin list queues again and as you can see
> the queue and exchange persist, but the messages are lost.
>
> I can provide any other information if necessary.
>
> Thanks!!
>
> -James
>
> --
> "Of course, the actual government of any computer is run by that fascist
> dictator known as the operating system. But a wise dictator knows when to
> let the people think they're capitalists--and when to let them think
> they're communists." - Programming Perl third edition
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20120523/c983f87c/attachment.htm>
More information about the rabbitmq-discuss
mailing list