1 Reply Latest reply on Feb 27, 2010 3:36 PM by timfox

    Effect of the Stomp 'persistent' header?

    mjustin

      Hello,

       

      as described in http://stomp.codehaus.org/Stomp+JMS Stomp headers can include the 'persistent' header which is mapped to JMSDeliveryMode.

       

      In HornetQ, all destinations are durable by default and can be set to not durable (as per chapter 25.1 in the user guide):

       

          <queue name="ExampleQueue">
              <entry name="/queue/ExampleQueue"/>
                  <durable>false</durable>
          </queue>

       

      Which effect will it have to set the 'persistent' header in a Stomp frame to 'true' or 'false', will it be ignored?

        • 1. Re: Effect of the Stomp 'persistent' header?
          timfox
          I believe it has the same semantics as JMS, i.e. for persistence to occur both the message and the queue need to be persistent, so yes, in effect a durable message in a non durable queue will behave as a non durable message.
          1 of 1 people found this helpful