I try to get all channel names by connecting to a server connection channel using java api. I set permission to all channels with the following command.
setmqaut -m local -t channel -n SYSTEM.** -p test +all
The java code,
pcfMessageAgent = new PCFMessageAgent(host, port, channelName);
PCFMessage request = new PCFMessage(CMQCFC.MQCMD_INQUIRE_CHANNEL);
request.addParameter(CMQCFC.MQCACH_CHANNEL_NAME, "*");
try {
queueResponses = pcfMessageAgent.send(request);
But I get 2035 error code with the below logs and I am unable see SYSTEM.DEF.CLNTCONN
on explorer and unable to set the permission with the setmqaut command,
AMQ8077: Entity 'test@mysystem' has insufficient authority to access
object 'SYSTEM.DEF.CLNTCONN'.
EXPLANATION:
The specified entity is not authorized to access the required object. The
following requested permissions are unauthorized: dsp