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 API Support » Get Queue Manager status

Post new topic  Reply to topic
 Get Queue Manager status « View previous topic :: View next topic » 
Author Message
swordfish8881
PostPosted: Mon Feb 16, 2009 11:27 pm    Post subject: Get Queue Manager status Reply with quote

Newbie

Joined: 16 Feb 2009
Posts: 1

I use the below code to get the queue manager status, but cant work with exception.

Code:
request = new PCFMessage(CMQCFC.MQCMD_INQUIRE_Q_MGR_STATUS);
request.addParameter(CMQC.MQCA_Q_MGR_NAME, this.queueManager.getName());

responses = this.messageAgent.send(request);

if(responses.length > 0){

int qmStatus =  responses[0].getIntParameterValue(CMQCFC.MQIACF_Q_MGR_STATUS);

}


May i know how to get the queue manager status eg stop or start, using PCF?
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Feb 17, 2009 1:12 am    Post subject: Re: Get Queue Manager status Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

swordfish8881 wrote:

May i know how to get the queue manager status eg stop or start, using PCF?


Issue any PCF command. If you get a response the queue manager's started. If you get a 2059 error it's stopped.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Feb 17, 2009 3:11 am    Post subject: Re: Get Queue Manager status Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

swordfish8881 wrote:
cant work with exception.


Why not?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » Get Queue Manager status
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.