Author |
Message
|
wattle9 |
Posted: Sun Jul 10, 2016 8:08 pm Post subject: Sending PCF messages to get queue statistics |
|
|
Newbie
Joined: 30 Sep 2013 Posts: 6
|
I developed a java program to send PCF messages to queue manager so that I can get current queue depth and message put time for a specific queue. However, I got below exception.
Error: System.err: com.ibm.mq.pcf.PCFException: MQJE001: Completion Code 2, Reason 2085 Error
System.err: at com.ibm.mq.pcf.PCFMessageAgent.send(PCFMessageAgent.java:238) Error
System.err: at Actions.action(Actions.java:54)
I was able to send data messages (not PCF messages) to the same queue without any issue.
To get the MQ statistics from a specific queue, does MQ administrator have to make any configuration changes from the server end? |
|
Back to top |
|
 |
fjb_saper |
Posted: Sun Jul 10, 2016 9:08 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
if the queue manager you are requesting the information from is not the queue manager your are connected to, you need a default path from the queue manager creating the response message to the queue manager you are connected to.
2085 means IIRC that the object in question does not exist...  _________________ MQ & Broker admin |
|
Back to top |
|
 |
smdavies99 |
Posted: Sun Jul 10, 2016 9:35 pm Post subject: Re: Sending PCF messages to get queue statistics |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
wattle9 wrote: |
I was able to send data messages (not PCF messages) to the same queue without any issue.
|
from memory, PCF Messages need to be written to a SYSTEM.???? queue.
You can check this by looking at the sample code programs that are supplied with MQ. There are 'C' samples that use PCF. See what queue they use. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
hughson |
Posted: Sun Jul 10, 2016 9:36 pm Post subject: Re: Sending PCF messages to get queue statistics |
|
|
 Padawan
Joined: 09 May 2013 Posts: 1959 Location: Bay of Plenty, New Zealand
|
wattle9 wrote: |
... so that I can get current queue depth and message put time for a specific queue. .... I was able to send data messages (not PCF messages) to the same queue without any issue. |
Which queue are you referring to here? Do you think the exception is referring to the queue which you are inquiring the curdepth of, or the command server input queue which you would not send data messages to (or the command server would complain).
Could you show us some more of your application code so we could help further?
Cheers
Morag _________________ Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software |
|
Back to top |
|
 |
wattle9 |
Posted: Wed Jul 13, 2016 8:09 pm Post subject: Re: Sending PCF messages to get queue statistics |
|
|
Newbie
Joined: 30 Sep 2013 Posts: 6
|
Hi, I think I found the issue. I was able to query the available queue names for the queue manager using PCF commands and was NOT able to see the specific queue name (lets say Queue1) in the list. But, I was able to send the messages into the same queue (Queue1) and was able to see consumer application is processing it. |
|
Back to top |
|
 |
hughson |
Posted: Thu Jul 14, 2016 2:12 am Post subject: |
|
|
 Padawan
Joined: 09 May 2013 Posts: 1959 Location: Bay of Plenty, New Zealand
|
I take it you don't have authority to display this queue then?
If you use runmqsc from the same user id that you're running the application from, can you display the queue using that tool?
Or, perhaps this is a remote queue which actually resides on a different queue manager? Although your comment which suggests you can see the application processing the queue suggests it is on the same queue manager. How do you see the application processing the queue? i.e. which command did you issue?
Cheers
Morag _________________ Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software |
|
Back to top |
|
 |
|