On 05/06/2011 06:58 PM, Mahmoud Parsian wrote:
Hello Boris,

thank you for replying to my email/questions.

OK, I understand that I have to make my queue and messages durable, I
have made all my queues durable (please see the attached
virtualhosts_with_bdb.xml.txt file (renamed to .txt so that email does
not count it as spam). Still I have the same situation.
My log file says queues are durable.

steps:
1. start server
2. put two messages
3. veryify messages with MessageBrowser that there are 2 messages
4. shutdown server
5. start server
6. MessageBrowser shows there are 0 (zero) messages

How do I make my messages durable? any setting on the message?

Assuming you are using JMS, ensure the DeliveryMode for the producer is set to DeliveryMode.PERSISTENT[1].

You also need to ensure that you have a store plugin loaded for your broker (assuming you are using qpidd, the c++ broker). You can read more about that at https://cwiki.apache.org/qpid/faq.html#FAQ-Persistence including how to get and build one for 0.10.

[1] http://download.oracle.com/javaee/1.4/api/javax/jms/MessageProducer.html#setDeliveryMode%28int%29

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]

Reply via email to