| Author | 
		  Message
		 | 
		
		  | sandeepp@cislworld.com | 
		  
		    
			  
				 Posted: Thu Apr 12, 2007 6:02 am    Post subject: Error 2033 remote server | 
				     | 
			   
			 
		   | 
		
		
		   Newbie
 
 Joined: 12 Apr 2007 Posts: 6
  
  | 
		  
		    
			  
				HI
 
 
I have MQ series running in another district when i put messages 
 
to input queue the messages are going 
 
 
and try to get message from input queue it 
 
gives me 2033 error.
 
 
input queue is a local queue so i can do put and get on it.
 
 
please let me know regarding this......... | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | jefflowrey | 
		  
		    
			  
				 Posted: Thu Apr 12, 2007 6:03 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Grand Poobah
 
 Joined: 16 Oct 2002 Posts: 19981
  
  | 
		  
		    
			  
				This is almost a double-post.     
 
 
You're either trying to get messages that aren't on the queue, haven't been committed, or you're asking for messages by MsgId or CorrelId when there isn't a message on the queue (that's been commited) with that MsgId or CorrelId. _________________ I am *not* the model of the modern major general. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | sandeepp@cislworld.com | 
		  
		    
			  
				 Posted: Thu Apr 12, 2007 6:13 am    Post subject: Error 2033 remote server | 
				     | 
			   
			 
		   | 
		
		
		   Newbie
 
 Joined: 12 Apr 2007 Posts: 6
  
  | 
		  
		    
			  
				
   
	| jefflowrey wrote: | 
   
  
	This is almost a double-post.     
 
 
You're either trying to get messages that aren't on the queue, haven't been committed, or you're asking for messages by MsgId or CorrelId when there isn't a message on the queue (that's been commited) with that MsgId or CorrelId. | 
   
 
 
----------------------------------------------------------------
 
hi
 
 
how can i check it is commited or not as it is in remote place.
 
 
i am just trying a simple get message :
 
code is like this
 
 
string QueueName = "ADD";
 
                string message = "";
 
                MQQueueManager out_qm = new MQQueueManager(QueueManagerName, ChannelName, Connection);
 
                MQQueue out_queue = out_qm.AccessQueue(QueueName, MQC.MQOO_INPUT_SHARED | MQC.MQOO_INQUIRE | MQC.MQOO_FAIL_IF_QUIESCING);
 
                MQMessage out_msg = new MQMessage();
 
                out_msg.Format = MQC.MQFMT_STRING;
 
             
 
                 try
 
                    {
 
                        out_queue.Get(out_msg);
 
                        message = out_msg.ReadString(out_msg.MessageLength);
 
                       Console.WriteLine("MQQueue::Message " + message);
 
                                    }
 
                                              
 
                  catch (MQException mqexp)
 
                      {
 
                          if ( out_queue.ReasonCode == 2033)
 
                              Console.WriteLine("no messages in queue ");
 
                         else
 
                              Console.WriteLine("MQQueue::Get ended with " + mqexp.Message);
 
                        
 
                    } | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Vitor | 
		  
		    
			  
				 Posted: Thu Apr 12, 2007 6:20 am    Post subject: Re: Error 2033 remote server | 
				     | 
			   
			 
		   | 
		
		
		    Grand High Poobah
 
 Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA 
  | 
		  
		    
			  
				
   
	| sandeepp@cislworld.com wrote: | 
   
  
	
 
how can i check it is commited or not as it is in remote place.
 
 | 
   
 
 
 
If the queue is remote how can you get from it? Are you cliented onto the remote manager? What am I not getting?    
 
 
Ask the putting application if it was using syncpoint, and if so did it finish normally / do a commit before it abended. Under these circumstances the message will be committed.
 
 
You'll find this behaviour docuemented in the Application Programming manuals. _________________ Honesty is the best policy.
 
Insanity is the best defence. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | jefflowrey | 
		  
		    
			  
				 Posted: Thu Apr 12, 2007 6:23 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Grand Poobah
 
 Joined: 16 Oct 2002 Posts: 19981
  
  | 
		  
		    
			  
				You need to create a new MQMessage object for every Get. _________________ I am *not* the model of the modern major general. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | sandeepp@cislworld.com | 
		  
		    
			  
				 Posted: Thu Apr 12, 2007 6:25 am    Post subject: Re: Error 2033 remote server | 
				     | 
			   
			 
		   | 
		
		
		   Newbie
 
 Joined: 12 Apr 2007 Posts: 6
  
  | 
		  
		    
			  
				
   
	| Vitor wrote: | 
   
  
	
   
	| sandeepp@cislworld.com wrote: | 
   
  
	
 
how can i check it is commited or not as it is in remote place.
 
 | 
   
 
 
 
If the queue is remote how can you get from it? Are you cliented onto the remote manager? What am I not getting?    
 
 
Ask the putting application if it was using syncpoint, and if so did it finish normally / do a commit before it abended. Under these circumstances the message will be committed.
 
 
You'll find this behaviour docuemented in the Application Programming manuals. | 
   
 
 
 
The Queue is local queue on the remote server.....
 
ya i am cliented how to commit please hep me | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | sandeepp@cislworld.com | 
		  
		    
			  
				 Posted: Thu Apr 12, 2007 6:27 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Newbie
 
 Joined: 12 Apr 2007 Posts: 6
  
  | 
		  
		    
			  
				
   
	| jefflowrey wrote: | 
   
  
	| You need to create a new MQMessage object for every Get. | 
   
 
 
 
why we need to do it....... | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Vitor | 
		  
		    
			  
				 Posted: Thu Apr 12, 2007 7:13 am    Post subject: Re: Error 2033 remote server | 
				     | 
			   
			 
		   | 
		
		
		    Grand High Poobah
 
 Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA 
  | 
		  
		    
			  
				
   
	| sandeepp@cislworld.com wrote: | 
   
  
	| ya i am cliented how to commit please hep me | 
   
 
 
 
   
	| Vitor wrote: | 
   
  
	
 
Ask the putting application if it was using syncpoint, and if so did it finish normally / do a commit before it abended. Under these circumstances the message will be committed.
 
 
You'll find this behaviour docuemented in the Application Programming manuals. | 
   
 
 
 
Bear in mind this may not in fact be your problem..... _________________ Honesty is the best policy.
 
Insanity is the best defence. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | jefflowrey | 
		  
		    
			  
				 Posted: Thu Apr 12, 2007 7:44 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Grand Poobah
 
 Joined: 16 Oct 2002 Posts: 19981
  
  | 
		  
		    
			  
				
   
	| sandeepp@cislworld.com wrote: | 
   
  
	
   
	| jefflowrey wrote: | 
   
  
	| You need to create a new MQMessage object for every Get. | 
   
 
 
 
why we need to do it....... | 
   
 
 
 
That is left as an exercise. _________________ I am *not* the model of the modern major general. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |