2 Replies Latest reply on Sep 29, 2011 11:04 AM by stephane.masson

    [REST + embedded] Persistent messages are resent after server restart


      Hi all,


      I tried to enable message persistence with REST interface (and embedded HornetQ) but after a server restart, messages are resent to the client even if they have already been consumed. (MessageCount JMX attribute is not decremented after a message consummation).


      Some details:


      - My test is based on 'mixed-jms-rest' example of HonretQ 2.2.2 REST (http://downloads.jboss.org/hornetq/HornetQ-REST-Examples_2.2.2.Final.zip)


      - I've just enable enabled persistence by:

        * setting <persistence-enabled>true</persistence-enabled> in hornetq-configuration.xml (ref http://docs.jboss.org/hornetq/2.2.2.Final/user-manual/en/html/persistence.html#persistence.enabled)


        * setting <default-durable-send>true</default-durable-send> in REST Configuration (ref http://docs.jboss.org/hornetq/2.2.2.Final/rest-interface-manual/html/ch02.html#d0e81)


      - The problem is present either with automatic or manual acknowledge but not with JMS client


      - The problem is present either for queues and topics with durable subscriptions



      Should I create an issue in JIRA?


      Thanks in advance for your help