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 » [Solved] PCF Commands

Post new topic  Reply to topic
 [Solved] PCF Commands « View previous topic :: View next topic » 
Author Message
vadivel
PostPosted: Wed Jan 22, 2003 6:58 am    Post subject: [Solved] PCF Commands Reply with quote

Voyager

Joined: 05 Aug 2002
Posts: 79
Location: US

Hi,
I'm using PCF command to check the status of a channel, it works perfectly in Win NT, but when I run the same code in Solaris, it takes a long time(20 secs) and throws PCFError message.

This is the code and I got it from some site..

PCFMessageAgent agent = new PCFMessageAgent (queueManagerName);
PCFMessage request = new PCFMessage (CMQCFC.MQCMD_PING_CHANNEL);
try
{
request.addParameter (CMQCFC.MQCACH_CHANNEL_NAME, channelName);
PCFMessage [] responses = agent.send (request);
int[] statusCode = {CMQC.MQRC_NONE,CMQCFC.MQRCCF_ALLOCATE_FAILED,
CMQCFC.MQRCCF_BIND_FAILED,CMQCFC.MQRCCF_CCSID_ERROR,
CMQCFC.MQRCCF_CFIN_DUPLICATE_PARM,
CMQCFC.MQRCCF_CFIN_LENGTH_ERROR,
CMQCFC.MQRCCF_CFIN_PARM_ID_ERROR,
CMQCFC.MQRCCF_CFST_DUPLICATE_PARM,
CMQCFC.MQRCCF_CFST_LENGTH_ERROR,
CMQCFC.MQRCCF_CFST_PARM_ID_ERROR,
CMQCFC.MQRCCF_CFST_STRING_LENGTH_ERR,
CMQCFC.MQRCCF_CHANNEL_IN_USE,
CMQCFC.MQRCCF_CHANNEL_NOT_FOUND,
CMQCFC.MQRCCF_CHANNEL_TYPE_ERROR,
CMQCFC.MQRCCF_CONFIGURATION_ERROR,
CMQCFC.MQRCCF_CONNECTION_CLOSED,
CMQCFC.MQRCCF_CONNECTION_REFUSED,
CMQCFC.MQRCCF_DATA_TOO_LARGE,
CMQCFC.MQRCCF_ENTRY_ERROR,
CMQCFC.MQRCCF_HOST_NOT_AVAILABLE,
CMQCFC.MQRCCF_NO_COMMS_MANAGER,
CMQCFC.MQRCCF_NO_STORAGE,
CMQCFC.MQRCCF_PARM_COUNT_TOO_BIG,
CMQCFC.MQRCCF_PARM_COUNT_TOO_SMALL,
CMQCFC.MQRCCF_PING_DATA_COMPARE_ERROR,
CMQCFC.MQRCCF_PING_DATA_COUNT_ERROR,
CMQCFC.MQRCCF_PING_ERROR,CMQCFC.MQRCCF_RECEIVE_FAILED,
CMQCFC.MQRCCF_RECEIVED_DATA_ERROR,
CMQCFC.MQRCCF_REMOTE_QM_TERMINATING,
CMQCFC.MQRCCF_REMOTE_QM_UNAVAILABLE,
CMQCFC.MQRCCF_SEND_FAILED,CMQCFC.MQRCCF_NO_STORAGE,
CMQCFC.MQRCCF_STRUCTURE_TYPE_ERROR,
CMQCFC.MQRCCF_TERMINATED_BY_SEC_EXIT,
CMQCFC.MQRCCF_UNKNOWN_REMOTE_CHANNEL,
CMQCFC.MQRCCF_USER_EXIT_NOT_AVAILABLE};

for(int k=0;k<responses.length;k++)
{
for(int j=0;j<statusCode.length;j++)
{
Integer names = (Integer )
responses[k].getParameterValue(statusCode[j]);
}
}
agent=null;
request=null;
}
catch(PCFException e)
{
return true;
}
catch (Exception pcfe)
{
System.out.println ("PCF error: " + pcfe.getMessage() + new Date());
}

return false;

I've set the CLASSPATH to libmqjdf01.so, libmqjbnd04.so, libMQXAi01.so..
Should I have to do something else.
Thanks
vels
Back to top
View user's profile Send private message Yahoo Messenger
clindsey
PostPosted: Wed Jan 22, 2003 8:25 am    Post subject: Reply with quote

Knight

Joined: 12 Jul 2002
Posts: 586
Location: Dallas, Tx

Make sure the command server is running on solaris.
Enter 'dspmqcsv qmgrname' to get status.
If it is not running, start it with 'strmqcsv qmgrname'

Charlie
Back to top
View user's profile Send private message
vadivel
PostPosted: Wed Jan 22, 2003 10:54 pm    Post subject: Reply with quote

Voyager

Joined: 05 Aug 2002
Posts: 79
Location: US

Hi Charlie,
Thanx a lot, that was the problem.
Regards
Vels
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » [Solved] PCF Commands
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.