[英]How to Get-Inhibit the WebSphere MQ Queue?
There is a property for WebSphere MQ queue to inhibit GET
from the queue. WebSphere MQ队列有一个属性可以禁止队列中的
GET
。 To set this property I found two ways. 要设置此属性,我发现了两种方法。
ALTER QLOCAL(TEST) GET(DISABLED)
. ALTER QLOCAL(TEST) GET(DISABLED)
队列ALTER QLOCAL(TEST) GET(DISABLED)
。 Is there any way to enable or disable GET
on a WebSphere MQ queue through a Java Program? 有没有办法通过Java程序在WebSphere MQ队列上启用或禁用
GET
?
You can use PCF Change, Copy, and Create Queue command to change the attributes of the queue. 您可以使用PCF 更改,复制和创建队列命令来更改队列的属性。 This can be used from Java with the aid of the PCF Java helper classes, see Handling PCF Messages with IBM MQ classes for Java
这可以在Java上借助PCF Java帮助程序类使用,请参阅使用适用于Java的IBM MQ类处理PCF消息
InhibitGet (MQCFIN) InhibitGet(MQCFIN)
Get operations are allowed or inhibited (parameter identifier: MQIA_INHIBIT_GET ). 允许或禁止获取操作(参数标识符:MQIA_INHIBIT_GET)。
The value can be: 值可以是:
MQQA_GET_ALLOWED MQQA_GET_ALLOWED
Get operations are allowed. 允许进行操作。
MQQA_GET_INHIBITED MQQA_GET_INHIBITED
Get operations are inhibited. 获取操作被禁止。
Sure. 当然。 When you open the queue for
GET
or for PUT
you can include the SET
option and then use the MQSET
API call. 当您为
GET
或PUT
打开队列时,您可以包含SET
选项,然后使用MQSET
API调用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.