|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Using PCF Messaging in C# |
« View previous topic :: View next topic » |
Author |
Message
|
aboggis |
Posted: Wed Feb 07, 2007 11:20 am Post subject: Using PCF Messaging in C# |
|
|
 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 |
|
 |
jefflowrey |
Posted: Wed Feb 07, 2007 12:03 pm Post subject: |
|
|
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 |
|
 |
aboggis |
Posted: Wed Feb 07, 2007 12:15 pm Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|