Results 1 to 3 of 3

Thread: Message Persistence

  1. #1
    Join Date
    Dec 2010
    Location
    London, England
    Posts
    11

    Question 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. #2
    Join Date
    Oct 2005
    Location
    Boston, MA
    Posts
    2,853

    Default

    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;

  3. #3
    Join Date
    Dec 2010
    Location
    London, England
    Posts
    11

    Default

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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •