20.2. Configuring Expiry Addresses

Expiry addresses are defined in the address-setting configuration:
<!-- expired messages in exampleQueue will be sent to the expiry address expiryQueue -->
<address-setting match="jms.queue.exampleQueue">
   <expiry-address>jms.queue.expiryQueue</expiry-address>
</address-setting>
If messages are expired and no expiry address is specified, they are removed from the queue and dropped. Address wildcards can be used to configure expiry address for a set of addresses (see Chapter 11, Understanding the HornetQ Wildcard Syntax).