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 » aborting from MQC.MQGMO_WAIT

Post new topic  Reply to topic
 aborting from MQC.MQGMO_WAIT « View previous topic :: View next topic » 
Author Message
razf1
PostPosted: Thu Mar 04, 2004 4:00 pm    Post subject: aborting from MQC.MQGMO_WAIT Reply with quote

Newbie

Joined: 04 Mar 2004
Posts: 1

Hi

I have a multithreaded app with several threads blocked on a MQQueue.get call set within an unlimited block (MQC.MQGMO_WAIT). How can I interrupt these threads to force them to shutdown? Since the threads are blocked by MQ itself, calling Thread.interrupt doesn't wake up the thread. Any help would be appreciated!
Back to top
View user's profile Send private message
bower5932
PostPosted: Thu Mar 04, 2004 6:16 pm    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

http://www.mqseries.net/phpBB/viewtopic.php?t=11551&highlight=unlimited+wait

Send a shutdown message to inform your app to break out of the get.

Get disable the queue so that you app gets an error on the queue and breaks out of the get.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
bduncan
PostPosted: Thu Mar 04, 2004 6:58 pm    Post subject: Reply with quote

Padawan

Joined: 11 Apr 2001
Posts: 1554
Location: Silicon Valley

Or just stop using an unlimited wait time
_________________
Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator
Back to top
View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » aborting from MQC.MQGMO_WAIT
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.