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 » Using PCF Messaging in C#

Post new topic  Reply to topic
 Using PCF Messaging in C# « View previous topic :: View next topic » 
Author Message
aboggis
PostPosted: Wed Feb 07, 2007 11:20 am    Post subject: Using PCF Messaging in C# Reply with quote

Centurion

Joined: 18 Dec 2001
Posts: 105
Location: Auburn, California

I'm using the PCF classes in a C# app to query a channel status and I'm getting a response code of 3065?

Code:
PCFMessageAgent agent = new PCFMessageAgent(QueueManager);
PCFMessage request = new PCFMessage(CMQCFC.MQCMD_INQUIRE_CHANNEL_STATUS);
request.AddParameter(CMQCFC.MQCACH_CHANNEL_NAME, "SenderChannelName");
PCFMessage[] responses = agent.Send(request);

The exception is thrown at the agent.send. The channel does exist and in the current test, it is inactive.

Am I missing something trivial? Thanks for comments...
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
jefflowrey
PostPosted: Wed Feb 07, 2007 12:03 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Yep.

The command server doesn't return a status for channels that are "inactive".

Inactive is a visual artifact from MQExplorer and a couple of similar tools.

If you don't get back a status, that likely means the channel is inactive.

Quote:
3065 (X'0BF9')
MQRCCF_CHL_STATUS_NOT_FOUND
Explanation:

Channel status not found.

For Inquire Channel Status, no channel status is available for the specified channel. This may indicate that the channel has not been used.
Programmer Response:

None, unless this is unexpected, in which case consult your systems administrator.

_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
aboggis
PostPosted: Wed Feb 07, 2007 12:15 pm    Post subject: Reply with quote

Centurion

Joined: 18 Dec 2001
Posts: 105
Location: Auburn, California

D'oh! I knew that... it's just been so long since I wrote PCF stuff that I'd forgotten that. Thanks for the gentle (and polite) reminder!
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » Using PCF Messaging in C#
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.