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 » PCF with .Net

Post new topic  Reply to topic
 PCF with .Net « View previous topic :: View next topic » 
Author Message
mike2315
PostPosted: Wed Apr 14, 2004 12:07 pm    Post subject: PCF with .Net Reply with quote

Newbie

Joined: 14 Apr 2004
Posts: 4
Location: New York

Anybody know how to change sender channel connection name by using PCF with .Net ????
Back to top
View user's profile Send private message MSN Messenger
JasonE
PostPosted: Mon Apr 26, 2004 6:23 am    Post subject: Reply with quote

Grand Master

Joined: 03 Nov 2003
Posts: 1220
Location: Hursley

PCF is unsupported but functional, and tries to mirror the PCF classes for example in the Java support pack. You also need fixpack 6 for some pcf changes in .net.

Hence an <b>unsupported</b> example which is minimal and no error checking is:
Code:
         PCFMessageAgent agent = new PCFMessageAgent("QM");                       
         PCFMessage reqeuestMessage = new PCFMessage(CMQCFC.MQCMD_CHANGE_CHANNEL);                               
         reqeuestMessage.AddParameter(CMQCFC.MQCACH_CHANNEL_NAME, "TEST");                   
         reqeuestMessage.AddParameter(1511 /*CMQCFC.MQIACH_CHANNEL_TYPE*/, MQC.MQCHT_SENDER);                   
         reqeuestMessage.AddParameter(CMQCFC.MQCACH_CONNECTION_NAME, "NEWVALUE");                   
         PCFMessage[] response;
         response = agent.Send(reqeuestMessage);
         System.Console.WriteLine("Compcode : " + response[0].GetCompCode());
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 » PCF with .Net
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.