HornetQ Address Settings

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

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