我使用下面的服務器端重新輸送構造如何處理消息之前將其發送到DLQ
<plugins>
<redeliveryPlugin fallbackToDeadLetter="true" sendToDlqIfMaxRetriesExceeded="true">
<redeliveryPolicyMap>
<redeliveryPolicyMap>
<redeliveryPolicyEntries>
<redeliveryPolicy
queue = "com.api.RequestQueue.v1"
maximumRedeliveries="20"
initialRedeliveryDelay="60000"
redeliveryDelay="60000" />
<redeliveryPolicy
queue = "com.api.RequestQueue.v2"
maximumRedeliveries="10"
initialRedeliveryDelay="30000"
redeliveryDelay="30000" />
<redeliveryPolicy
queue = "com.api.ResponseQueue.v1"
maximumRedeliveries="3"
initialRedeliveryDelay="34000"
redeliveryDelay="34000" />
</redeliveryPolicyEntries>
</redeliveryPolicyMap>
</redeliveryPolicyMap>
</redeliveryPlugin>
</plugins>
如何設置自定義端點處理試之後,只是將其發送之前失敗的消息到DLQ? 我做參考以下鏈接,但無法找到任何有關服務器端或redeliveryPlugin配置提及
2. logging-camel-exceptions-and-sending-to-the-dead-letter-channel