|   | 
	 
  
    | 
RSS Feed - WebSphere MQ Support
 | 
RSS Feed - Message Broker Support
 |   
 
  
	     | 
	 | 
   
 
  
	|  Cannot PUT Message | 
	« View previous topic :: View next topic »  | 
   
  
  	
	  
		
		
		  | Author | 
		  Message
		 |  
		
		  | limothy | 
		  
		    
			  
				 Posted: Thu Apr 25, 2002 1:31 am    Post subject:  | 
				     | 
			   
			 
		   | 
		 
		
		   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 | 
		  
		  	
		   | 
		 
		
		    | 
		 
		
		  | oz1ccg | 
		  
		    
			  
				 Posted: Thu Apr 25, 2002 1:46 am    Post subject:  | 
				     | 
			   
			 
		   | 
		 
		
		    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 | 
		  
		  	
		   | 
		 
		
		    | 
		 
		
		  | 
		    
		   | 
		 
	   
	 | 
   
 
  
	     | 
	 | 
	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
  | 
  		 
	   
	 | 
   
 
  	 | 
	  |