|  | 
 
  
    | RSS Feed - WebSphere MQ Support | RSS Feed - Message Broker Support |  
 
  
	|    |  |  
  
	| How can I interrupt Queue.get()? | « View previous topic :: View next topic » |  
  	| 
		
		
		  | Author | Message |  
		  | Andrey | 
			  
				|  Posted: Tue Dec 18, 2001 12:18 am    Post subject: |   |  |  
		  | Apprentice
 
 
 Joined: 02 Sep 2001Posts: 37
 Location: Belarus, Minsk
 
 | 
			  
				| Hi All! Is there any way to interrupt Queue.get() method when WaitInterval is Unlimited?
 Thanks
 |  |  
		  | Back to top |  |  
		  |  |  
		  | kolban | 
			  
				|  Posted: Tue Dec 18, 2001 7:19 am    Post subject: |   |  |  
		  |  Grand Master
 
 
 Joined: 22 May 2001Posts: 1072
 Location: Fort Worth, TX, USA
 
 | 
			  
				| There are two possibilities. 
 1. Get inhibit the queue for a moment.  This will cause the get() method to return with a queue inhibited exception.  You can then re-enable getting from the queue.
 
 2. Put a "wake up" message to the queue which the application knows is a signal simply to return.
 |  |  
		  | Back to top |  |  
		  |  |  
		  | Andrey | 
			  
				|  Posted: Tue Dec 18, 2001 9:00 am    Post subject: |   |  |  
		  | Apprentice
 
 
 Joined: 02 Sep 2001Posts: 37
 Location: Belarus, Minsk
 
 | 
			  
				| Thank, Neil I prefer the second one.
 
 |  |  
		  | Back to top |  |  
		  |  |  
		  | pal | 
			  
				|  Posted: Wed Feb 20, 2002 7:48 am    Post subject: |   |  |  
		  | Apprentice
 
 
 Joined: 14 Aug 2001Posts: 35
 
 
 | 
			  
				| Is it possible to do (1) programatically? So, theoretically, I basically inhibit get() before a disconnect() call and let the get() fail with an exception and reenable it in the exception handling part ... this should let the disconnect go through right?? |  |  
		  | 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
 
 |  |  |  |