|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
CCDT file being ignored? |
« View previous topic :: View next topic » |
Author |
Message
|
bwo |
Posted: Fri Apr 12, 2024 8:47 am Post subject: CCDT file being ignored? |
|
|
Newbie
Joined: 04 Apr 2024 Posts: 1
|
Hello!
I'm not really sure what's going on here so hopefully this makes sense to someone. I have a CCDT file provided to me which specifies, in part:
Code: |
"clientConnection": {
"queueManager": "QMGR",
"connection": [
{
"port": 1414,
"host": "[ip address]"
}
]
},
|
And I'm trying to connect with pymqi. I have the MQCHLLIB, MQCHLTAB, MQSSLKEYR, and MQCERTLABL environment variables set.
If I just run this (which has worked with a purely local server), I get an "MQRC_Q_MGR_NAME_ERROR" response:
Code: |
qmgr = pymqi.QueueManager(None)
qmgr.connect_with_options("QMGR")
|
*However*, if I create a `pymqi.CD()` structure and then pass it in, with a *blank* name, it does connect:
Code: |
cd = pymqi.CD()
cd.ChannelType = pymqi.CMQC.MQCHT_CLNTCONN
cd.TransportType = pymqi.CMQC.MQXPT_TCP
cd.ConnectionName = b"[ip address](1414)"
cd.SSLCipherSpec = b"ANY_TLS13_OR_HIGHER"
cd.ChannelName = b'the channel name'
qmgr.connect_with_options("", cd=cd)
|
That works fine. Trying just plain old `qmgr.connect_with_options("")` also doesn't work. So ? it seems as if the CCDT file is being somewhat ignored? That is, I have to pass in the data that the CCDT file contains, in the CD structure. Am I missing something obvious here? It seems as if this shouldn't be necessary when the CCDT file exists, and is being read, and from what I can tell this is the way to connect in a way that uses the CCDT data. |
|
Back to top |
|
 |
RogerLacroix |
Posted: Fri Apr 12, 2024 2:23 pm Post subject: |
|
|
 Jedi Knight
Joined: 15 May 2001 Posts: 3264 Location: London, ON Canada
|
Your CCDT JSON file doesn't look right. If you are trying to connect using SSL/TLS then where are those parameters?
Your CCDT JSON file should look more like:
Code: |
{
"channel":
[
{
"name": "the_channel",
"clientConnection":
{
"connection":
[
{
"host": "localhost",
"port": 1414
}
],
"queueManager": "QM1"
},
"transmissionSecurity":
{
"cipherSpecification": "",
"certificateLabel": "",
"certificatePeerName": ""
},
"type": "clientConnection"
}
]
}
|
later
Roger _________________ Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|