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 - Problem with changing DefXmitQName of a queue manager

Post new topic  Reply to topic
 PCF - Problem with changing DefXmitQName of a queue manager « View previous topic :: View next topic » 
Author Message
neelatul
PostPosted: Mon Jul 29, 2002 11:44 am    Post subject: PCF - Problem with changing DefXmitQName of a queue manager Reply with quote

Novice

Joined: 29 Jul 2002
Posts: 17

Hi,

I am a novice Java Programmer and I am trying to use PCF commands in my application.

Many other PCF commands work successful but the following which is for updating Default Transmission Queue Name of a queue manager always fail. There is nothing wrong with the queue manager as other tools work fine.

Can any one please tell me what is wrong in it ?

Any help will be highly appreciated. Thanks in advance.

The error message:

MQJE001: Completion Code 2, Reason 4004

The code:

import com.ibm.mq.*;
import com.ibm.mq.pcf.*;
import java.io.*;

public class Test {

private MQQueueManager queueManager;

public Test () {

try

{

String host="localhost";
int port=1414;
String qmgr="LOCALQM";
String channel="LOCALQM";
String tStr="";
PCFMessage responses[];

PCFMessageAgent agent = new PCFMessageAgent (host, port, channel);

PCFMessage request = new PCFMessage (CMQCFC.MQCMD_CHANGE_Q_MGR);

tStr="OTHER_XMITQ";

for(int i=tStr.length();i<48;i++) tStr=tStr+" ";

request.addParameter (CMQC.MQCA_DEF_XMIT_Q_NAME, tStr);

responses = agent.send (request);

agent.disconnect();

System.out.println("it went successful!");

}

catch (PCFException pcfe)
{
System.err.println ("Error in response: ");

}
catch (MQException mqe)
{
System.err.println (mqe);
System.exit(0);
}

catch (IOException ioe)
{
System.err.println (ioe);
System.exit(0);
}
}

public static void main (String argv[]) {
Test tst = new Test();
}
}
Back to top
View user's profile Send private message
clindsey
PostPosted: Mon Jul 29, 2002 2:07 pm    Post subject: PCF - Problem with changing DefXmitQName of a queue manager Reply with quote

Knight

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

4004 is MQRCCF_OBJECT_OPEN. My guess is that you cannot
rename the xmit queue while other processes have it open.
You will probably need to stop all the channels and try it.
Back to top
View user's profile Send private message
neelatul
PostPosted: Mon Jul 29, 2002 5:19 pm    Post subject: Reply with quote

Novice

Joined: 29 Jul 2002
Posts: 17

That may not be required as it works fine with MQSeries Explorer and MQMon tools, keeping all the queues and channels as it is.
Back to top
View user's profile Send private message
mrlinux
PostPosted: Tue Jul 30, 2002 6:10 am    Post subject: Reply with quote

Grand Master

Joined: 14 Feb 2002
Posts: 1261
Location: Detroit,MI USA

Does the new queue exist and is it set to be a XMITQ Queue ???
_________________
Jeff

IBM Certified Developer MQSeries
IBM Certified Specialist MQSeries
IBM Certified Solutions Expert MQSeries
Back to top
View user's profile Send private message Send e-mail
neelatul
PostPosted: Tue Jul 30, 2002 8:49 am    Post subject: Reply with quote

Novice

Joined: 29 Jul 2002
Posts: 17

You might have doubted because of the transmission queue name 'OTHER_XMITQ'. But yes, it does exist and it is transmission queue.
Back to top
View user's profile Send private message
mrlinux
PostPosted: Thu Aug 01, 2002 5:59 am    Post subject: Reply with quote

Grand Master

Joined: 14 Feb 2002
Posts: 1261
Location: Detroit,MI USA

Well I copied your code and compiled it, and it fails the same here too
_________________
Jeff

IBM Certified Developer MQSeries
IBM Certified Specialist MQSeries
IBM Certified Solutions Expert MQSeries
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » PCF - Problem with changing DefXmitQName of a queue manager
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.