|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Inquire channel status with pcf in queue sharing group(z/OS) |
« View previous topic :: View next topic » |
Author |
Message
|
steiger |
Posted: Wed Mar 18, 2009 2:44 am Post subject: Inquire channel status with pcf in queue sharing group(z/OS) |
|
|
Newbie
Joined: 18 Mar 2009 Posts: 9 Location: Germany
|
Hello,
I'm using pcf in Java to ask the queuemanager about information of running client-server connections. This works well. But I know have problems to get this information out of a queue sharing group.
Code: |
request = new PCFMessage (CMQCFC.MQCMD_INQUIRE_CHANNEL_STATUS);
request.addParameter(CMQCFC.MQCACH_CHANNEL_NAME, cHannelName);
request.addParameter(CMQCFC.MQIACH_CHANNEL_INSTANCE_TYPE, CMQC.MQOT_CURRENT_CHANNEL);
request.addParameter(CMQCFC.MQCACF_COMMAND_SCOPE, new String("*"));
//send PCF
try {
logger.debug("Sending PCF request... ");
responsesChStat = null;
responsesChStat = agent.send(request);
} catch (PCFException pcfEx) {
logger.debug("CC: "+ pcfEx.completionCode);
logger.debug("RC: "+ pcfEx.reasonCode);
logger.debug("Message: "+ pcfEx.getMessage())
}
|
The result is always the same:
CC = 2
RC = 2030 (MQRCCF_NONE_FOUND)
With COMMAND_SCOPE = *, the command should be executed on every active queuemanager in a sharing group.
I even get the 2030 RC, when the comand is executed on the queuemanager, where the client-server connections are established.
When I delete this line of code
Code: |
request.addParameter(CMQCFC.MQCACF_COMMAND_SCOPE, new String("*")); |
I get the correct result if the right queuemanager of the queue sharing group was chosen.
 |
|
Back to top |
|
 |
bruce2359 |
Posted: Wed Mar 18, 2009 6:01 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
MQRC 2030 0x000007ee MQRC_MSG_TOO_BIG_FOR_Q
Did you really get MQRC 3200 (0C80) (RC3200): MQRCCF_NONE_FOUND?
Did you look up the Reason Code in the WMQ Messages manual? What did it say the rc means? _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
steiger |
Posted: Thu Mar 19, 2009 1:02 am Post subject: |
|
|
Newbie
Joined: 18 Mar 2009 Posts: 9 Location: Germany
|
I stated the wrong rc.
I definitely always get this one:
3200 (0C80) (RC3200): MQRCCF_NONE_FOUND
The manual says
No items found matching request criteria.
An Inquire command found no items that matched the specified name and satisfied any other criteria requested.
But there are definitely channel status, which should be found.
Maybe there is another possibility to pass the asterisk? Is there a constat for that purpose? |
|
Back to top |
|
 |
steiger |
Posted: Thu Mar 19, 2009 4:45 am Post subject: |
|
|
Newbie
Joined: 18 Mar 2009 Posts: 9 Location: Germany
|
The above stated fragement of code does work.
It seems that I had some environmentally problems.
Thanks for your help.
 |
|
Back to top |
|
 |
bruce2359 |
Posted: Thu Mar 19, 2009 5:48 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
Hmmm. Channel status comes in two flavors: current and saved. Current is for channels currently active; and current is the default according to the MQSC manual.
Is it possible that some of the channels you were hoping to see had disonnected, and therefore had no current status? _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
steiger |
Posted: Mon Mar 23, 2009 2:04 am Post subject: |
|
|
Newbie
Joined: 18 Mar 2009 Posts: 9 Location: Germany
|
I monitored the connections with the MQ Administrator software. The channels were running when the pcf command was issued.
But I found out the follwoing:
If there are 0 or 1 active connections the command returns "3200 (0C80) (RC3200): MQRCCF_NONE_FOUND".
If there are at least 2 running connections, the command returns the correct result.
I think I will now open a PMR for MQ z/OS V6.
Thanks for your help. |
|
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
|
|
|
|