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 » Pub/Sub OnMessage hangs

Post new topic  Reply to topic
 Pub/Sub OnMessage hangs « View previous topic :: View next topic » 
Author Message
celtic_bhoy
PostPosted: Thu Jun 25, 2009 4:58 am    Post subject: Pub/Sub OnMessage hangs Reply with quote

Newbie

Joined: 04 Aug 2006
Posts: 8

Hi Folks,

I have a pub/sub model, In the onMessage method my application caught an exception , from this I am trying an orderly shutdown on the topic connection, but because I am calling close() on the connection from within the onMessage its hanging. I believe that the contact admin in the mq jars is waiting for my onMessage to complete before closing the connection.

Any ideas why this or how I can overcome this?

Thanks
Danny
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Jun 25, 2009 12:41 pm    Post subject: Re: Pub/Sub OnMessage hangs Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

celtic_bhoy wrote:
Hi Folks,

I have a pub/sub model, In the onMessage method my application caught an exception , from this I am trying an orderly shutdown on the topic connection, but because I am calling close() on the connection from within the onMessage its hanging. I believe that the contact admin in the mq jars is waiting for my onMessage to complete before closing the connection.

Any ideas why this or how I can overcome this?

Thanks
Danny

You can stop the connection so as not to get any more messages.Then you can set some flag to get out of the loop and shut down gracefully
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Pub/Sub OnMessage hangs
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.