在WebSphere MQ中配置死信队列 [英] configuring dead letter queue in WebSphere MQ

查看:529
本文介绍了在WebSphere MQ中配置死信队列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在我的应用程序中使用IBM Websphere和MQ,现在我想知道如何配置(或)使Websphere了解在MQ中创建了一个死信队列DEAD.QUEUE,它应该在处理请求/响应队列中的消息时出现任何故障的情况.

I am using IBM Websphere and MQ in my application and now I wanted to know how I can configure (or) make Websphere understand that there is a dead letter queue say DEAD.QUEUE created in MQ and it should use this queue in case of any failure while processing the messages from Request/ Response queue.

我正在尝试执行此操作,因为队列中有一条失败的消息,该消息试图一次又一次地将其重新发布到队列中.如果配置了一个死信队列,那么我想这可能会停止.如果我错了,请纠正我.

I am trying to do this because there is a failed message in the queue which is trying to republish it to the queue again and again. If there is a dead letter queue configured then I guess this might get stopped. Correct me if I am wrong.

推荐答案

您可以使用MQExplorer或MQSC命令外壳程序进行设置.

You can set it either by using MQExplorer or MQSC command shell.

在MQExplorer中,右键单击(在要为其设置死信队列的队列管理器上),然后选择属性"菜单.弹出队列管理器属性面板.单击左侧窗格中的扩展"节点.在右窗格中,可以在死信队列"编辑框中指定队列名称.

In MQExplorer right click (on the queue manager for which you want to set dead letter queue) and select Properties menu. Queue manager properties panel pops up. Click on "Extended" node on the left pane. On the right pane you can specify a queue name in "Dead Letter queue" edit box.

您还可以使用MQSC Shell设置DLQ.只需运行以下命令即可将SYSTEM.DEAD.LETTER.QUEUE设置为DLQ.

You can also set a DLQ using MQSC shell. Just run the following command which sets SYSTEM.DEAD.LETTER.QUEUE as the DLQ.

alter qmgr deadq(SYSTEM.DEAD.LETTER.QUEUE)

您正在使用哪个MQ客户端? JMS客户端还是XMS .NET客户端?如果重复发送邮件,这些客户端可以将邮件移到撤消或死信队列中.将消息移至回退队列或DLQ的过程取决于队列上的BOTHRESH设置.要启用回退处理,请设置一个大于0的值.

What MQ client are you using? JMS client or XMS .NET client? These clients have the capability to move messages to a backout or dead letter queue if a message is delivered repeatedly. The process of moving a message to a backout queue or DLQ depends on the BOTHRESH setting on a queue. To enable backout processing, set a value higher than 0.

这篇关于在WebSphere MQ中配置死信队列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆