I have IBM MQ running in one docker container and in another container I have IBM Websphere running. From Websphere I am trying to create QCF using CCDT connection method. I have copied CCDT file inside /tmp folder of Websphere container, when I test the connection I get the error:
A connection could not be made to IBM MQ for the following reason: JMSCMQ0001: IBM MQ call failed with compcode '2' ('MQCC_FAILED') reason '2278' ('MQRC_CLIENT_CONN_ERROR').*
I am able to connect from MQ Explorer using the same CCDT file.
CCDT JSON sample used:
{
"channel":
[
{
"connectionManagement":
{
"sharingConversations": 10,
"defaultReconnect": "no",
"heartbeatInterval": 10,
"keepAliveInterval": -1
},
"general":
{
"description": "Client Channel Definition",
"maximumMessageLength": 104857600
},
"name": "CHANNEL1",
"clientConnection":
{
"connection":
[
{
"host": "IP",
"port": port
}
],
"queueManager": "QMNAME"
},
"type": "clientConnection"
}
]
}
JSON CCDT support was not added to IBM MQ until 9.2 LTS. You won't be able to use it with a 9.1.0.7 RA.
Your only options are to use a binary CCDT or add/installed the 9.2 RA (rar) for WAS to use instead of the builtin 9.1.0.7 RA.
9.2.0.4 is the latest and you can download the java-all package to obtain the rar file.