|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Pub/Sub OnMessage hangs |
« View previous topic :: View next topic » |
Author |
Message
|
celtic_bhoy |
Posted: Thu Jun 25, 2009 4:58 am Post subject: Pub/Sub OnMessage hangs |
|
|
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 |
|
 |
fjb_saper |
Posted: Thu Jun 25, 2009 12:41 pm Post subject: Re: Pub/Sub OnMessage hangs |
|
|
 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 |
|
 |
|
|
 |
|
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
|
|
|
|