Overview
The Dead Letter Channel (DLC) is a sub-set of a queue
...
, specifically designed to persist messages
...
that are typically marked for deletion, providing
...
you with a choice on whether to delete, retrieve or reroute the messages from the DLC.
...
A DLC queue is created when the first subscription is made for a specific domain (superuser or tenant). By default, the message broker retries a defined number of times
...
, when a subscriber does not
...
acknowledge a message.
...
Once the retry count has been breached
...
, the message is removed from the queue
...
and placed into the DLC.
...
The default number of retries is set to 10, however, this value is configurable.
...
For information on how to configure the retry count, see Configuring the Message Retry Count
...
.
Functionality Narration
Info |
---|
External publishers/subscribers are not permitted to publish/subscribe to the DLC queue. |
Browsing through the
...
DLC Queue
All
...
messages that
...
have breached the retry count will be dumped into the DLC queue
...
. The content of the queue
...
can be viewed
...
by following the steps below:
- On the main tab in the management console click, Dead Letter Channel - > Browse
...
...
- .
- The DLC browser
...
- is displayed in the right side of the pane, as shown below
...
...
- . The message count defines the number of messages in the DLC queue
...
- .
- Click Browse under the View column to navigate to each individual message stored in the DLC.
...
3. The ‘browse’ link would result listing the queue contents as shown in the following,
...
...
The browser would display each message in the DLC along with its message content details
...
- The Destination column shows the name of the
...
The user could select one or more messages and perform the operations listed on the top right side corner.
...
- original queue.
You can choose to delete, restore or reroute one or more messages.
...
Operations in DLC
Delete
...
Delete - Permanently delete the message from
...
MB.
Restore
...
- Re-insert the message
...
to the queue
...
from which the message
...
originated
...
.
Reroute
...
ReRoute - Allows you to select a destination of choice
...
instead of
...
restoring the message to the
...
original queue. When you click ReRoute, a pop-up menu appears, as shown below
...
:
Select the queue name
...
to which the message
...
should be re-routed to and
...
Functional Aspects
Constraints
Publishing and subscribing to DLC queue would not be permitted for external publishers or subscribers.
DLC queue would be created upon the first subscription made for a specific domain. (superuser or tenant)
The messages would be inserted into the DLC queue when the subscribers do not respond positively and when the retry message count is breached. By default the message retry count would be 10. This is configurable. Which could be found under the section "Message Retry Count Policy"
click OK. The message is moved to the relevant queue.
Multitenancy
In order to ensure that
...
messages
...
can be distinguishable per tenant,
...
a separate DLC
...
is created for every new tenant created. The signature of the DLC queue
...
is similar to the
...
example below:
{tenant_name}/DeadLetterChannel
The above would ensure This ensures that only the messages exchanged through the queues in a specific tenant domain would be are inserted into the DLC queue.
Configuring the Message Retry Count
...
The message retry count could can be configured by following the steps mentioned below, 1) Locate as follows:
- Open the andes-config.xml file located
...
- in
$MB_HOME/repository/conf/advanced
...
2) Locate the attibute “maximumNumberOfMessageDeliveryAttempts” in the file. By modifying the value of the above mentioned attribute the retry count could be changed.
...
- .
- Locate the maximumNumberOfMessageDeliveryAttempts attribute and change the value accordingly.