I am writing a small app where i am using RabbitMQ to send/Receive a message. Everything is working ok, but i am struggling with message persistence.
I want message to remain in a Queue even in server restarts. I understand the concept of durability at exchange and Queue level and have set them to true (rather they are default as true). So when i restart my RabbitMQ server, exchange and Queue remains intact but the messages in a queue are deleted.
I am using EasyNetQ.IBus interface to send messages.
Thanks
_bus = RabbitHutch.CreateBus("host=abc;virtualHost=def;username=a;password=b;persistentMessages=true");
, I have read that by default persistence is true but it doesnt seems to be the case in my case. I am now manually settingmessage.properties.DelievryMode = 2
and test – Akihito