On 30 July 2013 22:02, jbelch <[email protected]> wrote: > Is there a JMS property to set on the message to make the message durable? >
You need to set the delivery mode either on the MessageProducer itself: http://docs.oracle.com/javaee/6/api/javax/jms/MessageProducer.html#setDeliveryMode(int) or you can use the follow version of send() to set it for each message you publish: http://docs.oracle.com/javaee/6/api/javax/jms/MessageProducer.html#send(javax.jms.Message, int, int, long) Note that the default mode is Persistent so absent any specific changing of the delivery mode you do not actively need to change the mode to persistent. -- Rob > In the C++ code, I found a qpid::messaging::Message.setDurable flag that > doesn't seem to be persisting the data. I am using Berkeley DB as the > message store. > > > > -- > View this message in context: > http://qpid.2158936.n2.nabble.com/Durable-Last-Value-Queue-tp7596176p7596182.html > Sent from the Apache Qpid users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
