The DLQ handler rules table
The DLQ handler rules table defines how the DLQ handler is to process messages that arrive on the DLQ. There are two types of entry in a rules table:
?The first entry in the table, which is optional, contains control data.
?All other entries in the table are rules for the DLQ handler to follow. Each rule
consists of a pattern (a set of message characteristics) that a message is matched against, and an action to be taken when a message on the DLQ matches the specified pattern. There must be at least one rule in a rules table. Each entry in the rules table comprises one or more keywords.
vi rules_dlq.txt
REASON (MQRC_PUT_INHIBITED) ACTION(FWD) +
FWDQ(QL.B) FWDQM(QMW) HEADER(NO)
$ runmqdlq DLQ QMW < rules_dlq.txt &
[1] 7834
$ 01/14/13 04:06:10 AMQ8708: Dead-letter queue handler started to process INPUTQ(DLQ).
$ amqsput QRMT.A QMC
Sample AMQSPUT0 start
target queue is QRMT.A
I send a message from QMC to QL.B
Sample AMQSPUT0 end
$ amqsget QL.B QMW
Sample AMQSGET0 start
message <I>
message <I>
no more messages
Sample AMQSGET0 end
$
ALTER QL(QL.A) PUT(ENABLED)
21 : ALTER QL(QL.A) PUT(ENABLED)
AMQ8008: WebSphere MQ queue changed.
CLEAR QL(QL.B)
22 : CLEAR QL(QL.B)
AMQ8022: WebSphere MQ queue cleared.
CLEAR QL(QL.A)
23 : CLEAR QL(QL.A)
AMQ8022: WebSphere MQ queue cleared.
Recent Comments