Announcement Announcement Module
Collapse
No announcement yet.
Message Persistence Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Message Persistence

    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?

  • #2
    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;

    Comment


    • #3
      For some weird reason I'd switched off the persistence. All good now though. Thanks.

      Comment

      Working...
      X