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 Java / JMS » How can I interrupt Queue.get()?

Post new topic  Reply to topic
 How can I interrupt Queue.get()? « View previous topic :: View next topic » 
Author Message
Andrey
PostPosted: Tue Dec 18, 2001 12:18 am    Post subject: Reply with quote

Apprentice

Joined: 02 Sep 2001
Posts: 37
Location: Belarus, Minsk

Hi All!
Is there any way to interrupt Queue.get() method when WaitInterval is Unlimited?
Thanks
Back to top
View user's profile Send private message Send e-mail
kolban
PostPosted: Tue Dec 18, 2001 7:19 am    Post subject: Reply with quote

Grand Master

Joined: 22 May 2001
Posts: 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
View user's profile Send private message
Andrey
PostPosted: Tue Dec 18, 2001 9:00 am    Post subject: Reply with quote

Apprentice

Joined: 02 Sep 2001
Posts: 37
Location: Belarus, Minsk

Thank, Neil
I prefer the second one.
Back to top
View user's profile Send private message Send e-mail
pal
PostPosted: Wed Feb 20, 2002 7:48 am    Post subject: Reply with quote

Apprentice

Joined: 14 Aug 2001
Posts: 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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » How can I interrupt Queue.get()?
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.