Matthew,
That's what I would have expected AUTOCL + QMNAME <= 20 chars long. However, in my case these were the values being used:
- AUTOCL = "TEST_CLUSTER"
- QMNAME = "QM1"
Concatenating these and adding a "_" in the middle still amounts to only 16 characters, not 20. It is behaving as if 15 were the true limit. The other possibility is that the length test is also counting "+" characters, though that doesn't quite add up right.
Jim
------------------------------
Jim Creasman
------------------------------
Original Message:
Sent: Thu October 07, 2021 11:44 AM
From: Matthew Whitehead
Subject: What is max allowed length of channel name for uniform cluster when using +AUTOCL+ parameter?
The maximum length of the channel name is 20 characters as you say, but if you combine the +AUTOCL+ and +QMNAME+ in the channel name then they will need to fit into 20 characters when they are expanded. So the maximum cluster name you can use is not hard coded to 11 - it depends on the length of your queue manager name.
------------------------------
Matthew Whitehead
Original Message:
Sent: Thu October 07, 2021 11:17 AM
From: Jim Creasman
Subject: What is max allowed length of channel name for uniform cluster when using +AUTOCL+ parameter?
I am following the 9.2 instructions here to set up a uniform cluster configuration. Part of this involves defining the cluster receiver channel.
DEFINE CHANNEL('+AUTOCL+_+QMNAME+') CHLTYPE(CLUSRCVR) TRPTYPE(TCP) CONNAME('+CONNAME+') CLUSTER('+AUTOCL+') REPLACE
When I first ran this I was getting the following error on the channel name:
AMQ8454E: Syntax error found in parameter CHANNEL.
Through trial and error I discovered that the maximum length that the "AUTOCL" value can be is 11 characters in the above (12 if I remove the "_"). 12 or more causes the above error. I thought channel names could be up to 20 characters long. For cluster names the limit is 48 characters if I'm reading the documentation correct.
The value of AUTOCL appears to come from AutoCluster.clusterName in the qm.ini file. What is the actual limit on the length of this value? Is it 11 characters instead of 48 for my example? I assume channel names in general can be up to 20 characters. What is the explanation for the behavior I am seeing? I've looked through the documentation but can't seem to find anything specific on this subject.
Thanks,
Jim
------------------------------
Jim Creasman
------------------------------