The following examples show some possible combinations of parameters that you can specify when you invoke the DLQ solution.
These examples are what you would specify on the Rules Processor Action Specification panel on the EXEC field.
WarningExample
In this example, the Rule fires when a persistent dead letter message (MQPER_PERSISTENT) arrives and the destination queue is BANK.EQUITY.LOAN.
The DLQ solution makes 3 attempts to PUT the message to its original destination queue. If all three attempts fail, the solution moves the message the BANK.EQUITY.LOAN.FAIL queue. A MainView AutoOPERATOR ALERT is also created and placed in the MQ_FAIL ALERT queue.
QMQDEDQ3 DQ(BANK.EQUITY.LOAN) PS(MQPER_PERSISTENT) DP(R) R(3) FD(M) MQ(BANK.EQUITY.LOAN.FAIL) AL(MQ_FAIL)
WarningExample
In this example, the Rule fires when a non-persistent message arrives on the dead letter queue whose destination queue is PARTS.INQUIRY. The action taken is to delete the message from the dead letter queue.
QMQDEDQ3 DQ(PARTS.INQUIRY) PS(MQPER_NOT_PERSISTENT) DP(D)
WarningExample
In this example, the Rule fires when a message arrives on the dead letter queue whose destination queue is SUPPLIES.INVENTORY.REPLIES and whose message type is MQMT_REPORT. The action taken is to attempt one retry at putting the message on its intended destination queue. If that retry attempt fails then the message will be left on the dead letter and ignored.
QMQDEDQ3 DQ(SUPPLIES.INVENTORY.REPLIES) MT(MQMT_REPORT) DP(R) R(1) FD(I)