wso2 / andes

Apache License 2.0
39 stars 128 forks source link

Move expired messages to DLC #965

Closed abeykoon closed 6 years ago

abeykoon commented 6 years ago

Purpose

New Improvement : Move expired messages to DLC

To enable edit [MB_HOME]/repository/conf/broker.xml file and define below parameter.


<performanceTuning> ...
     <messageExpiration> ...
        <moveExpiredMessagesToDLC> true </moveExpiredMessagesToDLC>

Goals

Fixes : wso2/product-ei#1914

Approach

Read a global setting from broker.xml to control the behavior.

User stories

Expired messages should not be deleted. They should be move into Dead Letter Channel instead.

Release note

Feature : expired messages are not removed, but routed to DLC. You can restore them back with expiry time reset.

Documentation

Refer above

Training

Move expired messages to DLC and see.

Certification

N/A

Marketing

N/A

Automation tests

Security checks

Related PR

https://github.com/wso2/carbon-business-messaging/pull/624