Dead-letter queue handler sample
A sample dead-letter queue handler is provided, the name of the executable version is amqsdlq. If you want a dead-letter queue handler that is different to RUNMQDLQ, the source of the sample is available for you to use your base.
The sample is similar to the dead-letter handler provided within the product but trace and error reporting are different. There are two environment variables available to you:
- ODQ_TRACE
- set to YES or yes to switch tracing on
- ODQ_MSG
- set to the name of the file containing error and information messages. The file provided is called amqsdlq.msg.
These need to be made known to your environment using either the export or set commands, depending on your platform; trace is turned off using the unset command.
You can modify the error message file, amqsdlq.msg, to suit your own requirements. The sample puts messages out to stdout, not to the WebSphere MQ error log file.
The WebSphere MQ System Administration Guide or the System Management Guide for your platform explains how the dead-letter handler works, and how you run it.
WebSphere is a trademark of the IBM Corporation in the United States, other countries, or both.
IBM is a trademark of the IBM Corporation in the United States, other countries, or both.