There is a property for WebSphere MQ queue to inhibit GET
from the queue. To set this property I found two ways.
ALTER QLOCAL(TEST) GET(DISABLED)
. Is there any way to enable or disable GET
on a WebSphere MQ queue through a Java Program?
You can use PCF Change, Copy, and Create Queue command to change the attributes of the queue. 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
InhibitGet (MQCFIN)
Get operations are allowed or inhibited (parameter identifier: MQIA_INHIBIT_GET ).
The value can be:
MQQA_GET_ALLOWED
Get operations are allowed.
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.