HornetQ Address Settings: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 37: Line 37:
</address-setting>
</address-setting>
</pre>
</pre>
=Message Redelivery on Failure and the Dead Letter Queue=
{{Internal|WildFly_HornetQ_Message_Redelivery_on_Failure_and_the_Dead_Letter_Queue|Message Redelivery on Failure and the Dead Letter Queue}}

Latest revision as of 17:46, 25 April 2017

Internal

Overview

<subsystem xmlns="urn:jboss:domain:messaging:1.4">
  <hornetq-server>
    ...
    <address-settings>
      <address-setting match="#">
        <dead-letter-address>jms.queue.DLQ</dead-letter-address>
        <expiry-address>jms.queue.ExpiryQueue</expiry-address>
        <redelivery-delay>0</redelivery-delay>
        <max-size-bytes>10485760</max-size-bytes>
        <page-size-bytes>2097152</page-size-bytes>
        <address-full-policy>PAGE</address-full-policy>
        <message-counter-history-day-limit>10</message-counter-history-day-limit>
        <redistribution-delay>1000</redistribution-delay>
      </address-setting>
    </address-settings>
    ...
  </hornetq-server>
</subsystem>

Configure Settings for a JMS Queue

In order to configure settings for a queue named "novaordis", set the following:

<address-setting match="jms.queue.novaordis">
   <expiry-address>jms.queue.expiry.novaordis</expiry-address>
   ...
</address-setting>

Message Redelivery on Failure and the Dead Letter Queue

Message Redelivery on Failure and the Dead Letter Queue