HornetQ Address Settings: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=Internal= * WildFly Messaging Subsystem Configuration")
 
 
(4 intermediate revisions by the same user not shown)
Line 2: Line 2:


* [[WildFly HornetQ-Based Messaging Subsystem Configuration#Subjects|WildFly Messaging Subsystem Configuration]]
* [[WildFly HornetQ-Based Messaging Subsystem Configuration#Subjects|WildFly Messaging Subsystem Configuration]]
=Overview=
<pre>
<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>
</pre>
=Configure Settings for a JMS Queue=
In order to configure settings for a queue named "novaordis", set the following:
<pre>
<address-setting match="jms.queue.novaordis">
  <expiry-address>jms.queue.expiry.novaordis</expiry-address>
  ...
</address-setting>
</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