How do I force-Deny a WebSphere MQ queue?
There is a property for the WebSphere MQ GET
queue to block from the queue. To set this property, I found two ways.
- Just set the property using the WebSphere MQ Explorer GUI.
- Modify the queue using the MQSC command
ALTER QLOCAL(TEST) GET(DISABLED)
.
Can I enable or disable GET
WebSphere MQ queuing through a Java program?
+3
source to share
2 answers
You can use the Edit, Copy and Create Queue PCF command to modify the attributes of a queue. This can be used from Java using the Java PCF Helper Classes, see Handling PCF Messages with IBM MQ Classes for Java
InhibitGet (MQCFIN)
Receive operations are allowed or denied (parameter ID: MQIA_INHIBIT_GET).
The value can be:
MQQA_GET_ALLOWED
Input operations are allowed.
MQQA_GET_INHIBITED
Get operations are prohibited.
+3
source to share