Hi,
I'm trying to see how to send a persistent message using spring amqp. Looking at the rabbitmq documentation it seems that this is at a message level as a property on the message, however I can't seem to find it.
Any ideas?
Hi,
I'm trying to see how to send a persistent message using spring amqp. Looking at the rabbitmq documentation it seems that this is at a message level as a property on the message, however I can't seem to find it.
Any ideas?
I believe you are looking for the setDeliveryMode() method on the Spring AMQP MessageProperties. However, the default value is persistent:
Code:private static final MessageDeliveryMode DEFAULT_DELIVERY_MODE = MessageDeliveryMode.PERSISTENT;
Mark Fisher
Spring Integration Lead
SpringSource, a division of VMware
http://www.springsource.com
http://www.springsource.org/spring-integration
http://blog.springsource.com/main/author/markf
For some weird reason I'd switched off the persistence. All good now though. Thanks.