Jib'z
Jib'z

Reputation: 1003

Cannot create temporary queue with default app user

I am new to MQ and I am using this docker image with the default setting. I need to connect through a java application (but without websphere).

I use the app user. This one can connect to the "DEV.APP.SVRCONN" channel without problem but i need to create a temporary queue (in order to get a response) and it fail to create it with the following error :

JMSWMQ2008: Failed to open MQ queue 'SYSTEM.DEFAULT.MODEL.QUEUE'

Cause by this error :

com.ibm.mq.MQException: JMSCMQ0001: IBM MQ call failed with compcode '2' ('MQCC_FAILED') reason '2035' ('MQRC_NOT_AUTHORIZED').

I checked with the MQ Manager and the "SYSTEM.DEFAULT.MODEL.QUEUE" does not exist, should i need to create it ?

Upvotes: 0

Views: 452

Answers (1)

Morag Hughson
Morag Hughson

Reputation: 7525

According to the Default developer configuration, users in mqclient group (which will be what you are using) have been given access to all queues and topics starting with DEV.** and have put, get, pub, sub, browse and inq permissions.

You are trying to use a queue that does not start with DEV.** so you will first need to set appropriate authority for the users in the mqclient group to do this. They will also need dsp authority in order to create a temporary queue from a model.

SET AUTHREC GROUP('mqclient') OBJTYPE(QUEUE) PROFILE(SYSTEM.DEFAULT.MODEL.QUEUE)    AUTHADD(GET,PUT,DSP)

Upvotes: 1

Related Questions