IBM MQ 传输未放置在死信队列中的队列消息

IBM MQ transmit queue messages not placed on dead letter queue

我目前有一个 XMIT 队列,其中一个 SDR 通道指向一个 QREMOTE。在本地或远程通道关闭的情况下,我想将 XMIT 队列上的消息转发到 DLQ。在这种情况下,消息似乎保留在 XMIT 队列中,直到通道重新建立。可以这样做吗?

我不这么认为。来自 ibm 红皮书:http://www.redbooks.ibm.com/redpapers/pdfs/redp0021.pdf

A transmission queue is a local queue with the USAGE(XMITQ) attribute configured. It is a staging point for messages that are destined for a remote queue manager. Typically, there is one transmission queue for each remote queue manager to which the local queue manager might connect directly. If the destination is unavailable, messages build up on the transmission queue until the connection can be successfully completed. Transmission queues are transparent to the application. When an application opens a remote queue, the queue manager internally creates a reference to the relevant transmission queue and messages are put there.