ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » Sending PCF messages to get queue statistics

Post new topic  Reply to topic
 Sending PCF messages to get queue statistics « View previous topic :: View next topic » 
Author Message
wattle9
PostPosted: Sun Jul 10, 2016 8:08 pm    Post subject: Sending PCF messages to get queue statistics Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Sun Jul 10, 2016 9:08 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20695
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
View user's profile Send private message Send e-mail
smdavies99
PostPosted: Sun Jul 10, 2016 9:35 pm    Post subject: Re: Sending PCF messages to get queue statistics Reply with quote

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
View user's profile Send private message
hughson
PostPosted: Sun Jul 10, 2016 9:36 pm    Post subject: Re: Sending PCF messages to get queue statistics Reply with quote

Padawan

Joined: 09 May 2013
Posts: 1914
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
View user's profile Send private message Visit poster's website
wattle9
PostPosted: Wed Jul 13, 2016 8:09 pm    Post subject: Re: Sending PCF messages to get queue statistics Reply with quote

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
View user's profile Send private message
hughson
PostPosted: Thu Jul 14, 2016 2:12 am    Post subject: Reply with quote

Padawan

Joined: 09 May 2013
Posts: 1914
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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Sending PCF messages to get queue statistics
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.