Question & Answer
Question
We are using a new IMS application in MQ that does the following and this results in MQRC 2042:
mqconn to CSQ1
mqopen of queue dest.ayacmqsr.send
mqput a message
mqclose queue dest.ayacmqsr.send
mqopen or queue dest.ayacmqsr.ims.reply
RC 2042 0x000007fa MQRC_OBJECT_IN_USE on the MQOPEN call
Step 3 causes a IMS transaction to get started. It gets the message and then tries to access DB2. This can be recreated by cold starting WebSphere MQ, which clears the MQ system ownership.
NOTE: This question originated from a technote.
Answer
Check to see if you set up a STGCLASS to use the OTMA bridge. In this case, typically the STGCLASS is used on the queue that has the RC2042. When using the OTMA bridge the ownership is always QMGR and SYSTEM. Make sure this is the case or you will get this error.
Was this topic helpful?
Document Information
Modified date:
27 April 2017
UID
dwa1371574