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 » General IBM MQ Support » Cannot PUT Message

Post new topic  Reply to topic
 Cannot PUT Message « View previous topic :: View next topic » 
Author Message
limothy
PostPosted: Thu Apr 25, 2002 1:31 am    Post subject: Reply with quote

Newbie

Joined: 15 Jan 2002
Posts: 4


Would anyone pls help - when I execute this code below:

/*--------- start ----
qMgr = new MQQueueManager(qManager);
int openOptions = MQC.MQOO_OUTPUT ;
String queueName = "TEST";
System.out.println("before access queue");
MQQueue getQueue =
qMgr.accessQueue(queueName,
openOptions,
null, // default q manager
null, // no dynamic q name
null); // no alternate user id
System.out.println("after access queue");
MQMessage idocMsg = new MQMessage();
MQGetMessageOptions gmo = new MQGetMessageOptions();
System.out.println("after set gmo");
getQueue.get(idocMsg, gmo); >>>>>>>>>>>>>>> FAIL HERE
System.out.println("DONE GET!!");
/*---------- end ------------

i have the following error:
MQJE001: Completion Code 2, Reason 2037
An MQ error occurred : Completion code 2 Reason code 2037

Thanks in advance - very new to the technology..
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
oz1ccg
PostPosted: Thu Apr 25, 2002 1:46 am    Post subject: Reply with quote

Yatiri

Joined: 10 Feb 2002
Posts: 628
Location: Denmark

Limothy,

Reason 2037 tells you that the queue is not opened for input, you've opened it for output (int openOptions = MQC.MQOO_OUTPUT .
You have to use one of the OPEN_INPUT_... when you're trying to read messages.

hope it helps


_________________
Regards, Jørgen
Home of BlockIP2, the last free MQ Security exit ver. 3.00
Cert. on WMQ, WBIMB, SWIFT.
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Cannot PUT Message
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.