---
title: "Caused by: com.ibm.mq.MQException: JMSCMQ0001: WebSphere MQ call failed with com"
author: "buralin"
date: "2017-07-27T21:19:03Z"
tags: []
categories: ["行业应用"]
slug: "caused-by-com-ibm-mq-mqexception-jmscmq0001-websphere-mq-call-failed-with-com"
draft: false
lastmod: "2017-07-27T21:19:03Z"
id: 2387126
url: "https://buralin.iteye.com/blog/2387126"
---

Caused by: com.ibm.mq.MQException: JMSCMQ0001: WebSphere MQ call failed with compcode '2' ('MQCC\_FAILED') reason '2531' ('MQRC\_PUBSUB\_INHIBITED').

        at com.ibm.msg.client.wmq.common.internal.Reason.createException(Reason.java:204)

 

        ... 39 more

 

Solution:

ALTER QMGR PSMODE(ENABLED)

 

/opt/mqm/bin/dspmqaut -m DHKL010RBP -t qmgr -p wasadm

 

setmqaut -m DHKL010RBP -n SYSTEM.BASE.TOPIC -t topic -p wasadm +sub +pub

setmqaut -m DHKL010RBP -t qmgr -p wasadm -all +connect +inq +setall +dsp +setid

 

setmqaut -m DHKL010RBP -t queue -n SYSTEM.CLUSTER.TRANSMIT.QUEUE -p wasadm -all +browse +get +inq +passall +put +setall +dsp +setid